Skip to content

moderation_queue: drop the cgi import - #2760

Open
c-tonneslan wants to merge 1 commit into
DemocracyClub:masterfrom
c-tonneslan:fix/cgi-module-removed
Open

moderation_queue: drop the cgi import#2760
c-tonneslan wants to merge 1 commit into
DemocracyClub:masterfrom
c-tonneslan:fix/cgi-module-removed

Conversation

@c-tonneslan

Copy link
Copy Markdown

cgi was removed in Python 3.13. is_valid_image_url only used cgi.parse_header to pull the main media type off the content-type header, so just split on ;.

cgi was removed in Python 3.13. We only needed the main media type
out of cgi.parse_header(content_type), so splitting on ';' covers the
same ground.

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant