Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4e7f1021
Commit
4e7f1021
authored
Mar 23, 2014
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#20976: remove unneeded quopri import in email.utils.
parent
401dee6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
Lib/email/message.py
Lib/email/message.py
+2
-1
Lib/email/utils.py
Lib/email/utils.py
+0
-3
No files found.
Lib/email/message.py
View file @
4e7f1021
...
...
@@ -8,6 +8,7 @@ __all__ = ['Message']
import
re
import
uu
import
quopri
from
io
import
BytesIO
,
StringIO
# Intrapackage imports
...
...
@@ -278,7 +279,7 @@ class Message:
if
not
decode
:
return
payload
if
cte
==
'quoted-printable'
:
return
utils
.
_qdecode
(
bpayload
)
return
quopri
.
decodestring
(
bpayload
)
elif
cte
==
'base64'
:
# XXX: this is a bit of a hack; decode_b should probably be factored
# out somewhere, but I haven't figured out where yet.
...
...
Lib/email/utils.py
View file @
4e7f1021
...
...
@@ -36,10 +36,7 @@ from email._parseaddr import mktime_tz
from
email._parseaddr
import
parsedate
,
parsedate_tz
,
_parsedate_tz
from
quopri
import
decodestring
as
_qdecode
# Intrapackage imports
from
email.encoders
import
_bencode
,
_qencode
from
email.charset
import
Charset
COMMASPACE
=
', '
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment