X Tutup
The Wayback Machine - https://web.archive.org/web/20260321182535/https://github.com/python/cpython/issues/94350
Skip to content

mailbox: Remove deprecated support for text, only accept bytes #94350

@vstinner

Description

@vstinner

In Python 3.2, the mailbox module was fixed to properly handle Unicode: it should now get bytes, rather than text. Support for accepting text was kept but marked as deprecated.

Main change: commit b7deff1 by @bitdancer in 2011: issue #53370.

In Python 3.12, 10 releases later, IMO it's now time to remove this legacy code.

I wrote PR #94351 to remove this code path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup