8000 gh-102498 Clean up unused variables and imports in the email module by JosephSBoyle · Pull Request #102482 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-102498 Clean up unused variables and imports in the email module #102482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Apr 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove superflous dict+unpacking syntax
  • Loading branch information
JosephSBoyle committed Mar 8, 2023
commit d2f40afa0465af16281a276234bd8de5ecae1078
2 changes: 1 addition & 1 deletion Lib/email/mime/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def __init__(self, _text, _subtype='plain', _charset=None, *, policy=None):
_charset = 'utf-8'

MIMENonMultipart.__init__(self, 'text', _subtype, policy=policy,
**{'charset': str(_charset)})
charset=str(_charset))

self.set_payload(_text, _charset)
0