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.