Skip to content

gh-62978: Use Python 3 terms in the email package docs - #155190

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-62978-email-py2-language
Aug 12, 2026
Merged

gh-62978: Use Python 3 terms in the email package docs#155190
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-62978-email-py2-language

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Replace "Unicode string" with "string" and the unicode() built-in with str() in docstrings, comments and documentation of the email package.

"byte string" is only replaced with "bytes" where other bytes-like objects are not accepted: Header(), Header.append() and BytesParser.parsebytes() accept a bytearray as well.

Replace "Unicode string" with "string" and the unicode() built-in with
str() in docstrings, comments and documentation of the email package.
"byte string" is only replaced with "bytes" where other bytes-like
objects are not accepted.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@serhiy-storchaka
serhiy-storchaka requested a review from a team as a code owner August 4, 2026 19:16
@serhiy-storchaka serhiy-storchaka added docs Documentation in the Doc dir needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news topic-email labels Aug 4, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Aug 4, 2026
@read-the-docs-community

Copy link
Copy Markdown

@willingc willingc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@serhiy-storchaka
serhiy-storchaka merged commit 4603523 into python:main Aug 12, 2026
71 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Aug 12, 2026

Copy link
Copy Markdown

GH-155635 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 12, 2026
@bedevere-app

bedevere-app Bot commented Aug 12, 2026

Copy link
Copy Markdown

GH-155636 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 12, 2026
@bedevere-app

bedevere-app Bot commented Aug 12, 2026

Copy link
Copy Markdown

GH-155637 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Aug 12, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 12, 2026
@serhiy-storchaka
serhiy-storchaka deleted the gh-62978-email-py2-language branch August 12, 2026 16:53
serhiy-storchaka added a commit that referenced this pull request Aug 12, 2026
) (GH-155637)

Replace "Unicode string" with "string" and the unicode() built-in with
str() in docstrings, comments and documentation of the email package.
"byte string" is only replaced with "bytes" where other bytes-like
objects are not accepted.
(cherry picked from commit 4603523)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
serhiy-storchaka added a commit that referenced this pull request Aug 12, 2026
) (GH-155636)

Replace "Unicode string" with "string" and the unicode() built-in with
str() in docstrings, comments and documentation of the email package.
"byte string" is only replaced with "bytes" where other bytes-like
objects are not accepted.
(cherry picked from commit 4603523)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Comment thread Lib/email/_policybase.py
Comment thread Lib/email/header.py
@terryjreedy

Copy link
Copy Markdown
Member

Comments above are now for followup. I approved the 3.15 backport.

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

Labels

docs Documentation in the Doc dir skip news topic-email

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants