Merge #20976: remove unneeded quopri import in email.utils.

This commit is contained in:
R David Murray 2014-03-23 14:24:44 -04:00
commit 2791e0d4e3
2 changed files with 2 additions and 4 deletions

View File

@ -8,6 +8,7 @@ __all__ = ['Message']
import re import re
import uu import uu
import quopri
from io import BytesIO, StringIO from io import BytesIO, StringIO
# Intrapackage imports # Intrapackage imports
@ -278,7 +279,7 @@ class Message:
if not decode: if not decode:
return payload return payload
if cte == 'quoted-printable': if cte == 'quoted-printable':
return utils._qdecode(bpayload) return quopri.decodestring(bpayload)
elif cte == 'base64': elif cte == 'base64':
# XXX: this is a bit of a hack; decode_b should probably be factored # XXX: this is a bit of a hack; decode_b should probably be factored
# out somewhere, but I haven't figured out where yet. # out somewhere, but I haven't figured out where yet.

View File

@ -36,10 +36,7 @@ from email._parseaddr import mktime_tz
from email._parseaddr import parsedate, parsedate_tz, _parsedate_tz from email._parseaddr import parsedate, parsedate_tz, _parsedate_tz
from quopri import decodestring as _qdecode
# Intrapackage imports # Intrapackage imports
from email.encoders import _bencode, _qencode
from email.charset import Charset from email.charset import Charset
COMMASPACE = ', ' COMMASPACE = ', '