summaryrefslogtreecommitdiffstats
path: root/Lib/email/mime
diff options
context:
space:
mode:
authorJosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>2023-04-24 19:19:28 (GMT)
committerGitHub <noreply@github.com>2023-04-24 19:19:28 (GMT)
commit04ea04807dc76955f56ad25a81a0947536343c09 (patch)
tree1620f517dde39171e42e633494ae594087753510 /Lib/email/mime
parent58b6be3791f55ceb550822ffd8664eca10fd89c4 (diff)
downloadcpython-04ea04807dc76955f56ad25a81a0947536343c09.zip
cpython-04ea04807dc76955f56ad25a81a0947536343c09.tar.gz
cpython-04ea04807dc76955f56ad25a81a0947536343c09.tar.bz2
gh-102498 Clean up unused variables and imports in the email module (#102482)
* Clean up unused variables and imports in the email module * Remove extra newline char * Remove superflous dict+unpacking syntax * Remove unused 'msg' var * Clean up unused variables and imports in the email module * Remove extra newline char * Remove superflous dict+unpacking syntax * Remove unused 'msg' var --------- Co-authored-by: Barry Warsaw <barry@python.org>
Diffstat (limited to 'Lib/email/mime')
-rw-r--r--Lib/email/mime/text.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/email/mime/text.py b/Lib/email/mime/text.py
index dfe53c4..7672b78 100644
--- a/Lib/email/mime/text.py
+++ b/Lib/email/mime/text.py
@@ -6,7 +6,6 @@
__all__ = ['MIMEText']
-from email.charset import Charset
from email.mime.nonmultipart import MIMENonMultipart
@@ -36,6 +35,6 @@ class MIMEText(MIMENonMultipart):
_charset = 'utf-8'
MIMENonMultipart.__init__(self, 'text', _subtype, policy=policy,
- **{'charset': str(_charset)})
+ charset=str(_charset))
self.set_payload(_text, _charset)