diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-03-23 14:18:44 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-03-23 14:18:44 -0400 |
commit | 95a8dfb92469a274eff9f3f42d40bf7251f9f439 (patch) | |
tree | c9a8bbc4a0ee46120c792d6d27da23ad9f8e0ea9 /Lib/email/message.py | |
parent | f8cbbbb652caf694661ab0ee8a4858fc7692c59a (diff) | |
download | cpython-git-95a8dfb92469a274eff9f3f42d40bf7251f9f439.tar.gz |
#20976: remove unneeded quopri import in email.utils.
Diffstat (limited to 'Lib/email/message.py')
-rw-r--r-- | Lib/email/message.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/email/message.py b/Lib/email/message.py index b4bc8cbc9e..aa46debeba 100644 --- a/Lib/email/message.py +++ b/Lib/email/message.py @@ -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. |