Skip to content

Move away from cgi.parse_header #873

@domdfcoding

Description

@domdfcoding

Overview Description

babel currently uses cgi.parse_header here to parse mime type headers.
The cgi module is deprecated in Python 3.11 by PEP 594, and is scheduled for removal in 3.13.
The recommended replacement is email.message.Message; there is an example in the PEP showing how to use it instead.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions