Skip to content

Move away from cgi.parse_header #873

Closed

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.

Activity

  1. added this to the Babel 2.11 milestone on May 10, 2022
  2. self-assigned this
    on May 10, 2022
  3. added a commit that references this issue on May 10, 2022
    965523b
  4. added a commit that references this issue on May 10, 2022
    4005988
  5. hugovk commented on Oct 30, 2022

    @hugovk
    Contributor

    Python 3.11 was released on Monday, so this deprecation warning is now showing up.

    Do you have a rough idea when this will be released?

    Thank you!

  6. akx commented on Oct 31, 2022

    @akx
    Member

    @hugovk I'll try go get that done this week! :)

  7. akx commented on Nov 1, 2022

    @akx
    Member

    @hugovk Babel 2.11.0 is freshly out of the oven! Find it at a PyPI CDN endpoint near you. 😁 https://github.com/python-babel/babel/releases/tag/v2.11.0

  8. hugovk commented on Nov 1, 2022

    @hugovk
    Contributor

    Thank you! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions