homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients barry, r.david.murray
Date 2013年02月09日.18:19:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1360433985.11.0.320523625616.issue17171@psf.upfronthosting.co.za>
In-reply-to
Content
Reported by Serhiy in issue 16564:
>>> import io, email
>>> bytesdata = b'\xfa\xfb\xfc\xfd\xfe\xff'
>>> msg = email.mime.application.MIMEApplication(bytesdata, _encoder=encoders.encode_7or8bit)
>>> s = io.BytesIO()
>>> g = email.generator.BytesGenerator(s)
>>> g.flatten(msg)
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/serhiy/py/cpython3.2/Lib/email/generator.py", line 91, in flatten
 self._write(msg)
 File "/home/serhiy/py/cpython3.2/Lib/email/generator.py", line 137, in _write
 self._dispatch(msg)
 File "/home/serhiy/py/cpython3.2/Lib/email/generator.py", line 163, in _dispatch
 meth(msg)
 File "/home/serhiy/py/cpython3.2/Lib/email/generator.py", line 393, in _handle_text
 if _has_surrogates(msg._payload):
TypeError: can't use a string pattern on a bytes-like object
History
Date User Action Args
2013年02月09日 18:19:45r.david.murraysetrecipients: + r.david.murray, barry
2013年02月09日 18:19:45r.david.murraysetmessageid: <1360433985.11.0.320523625616.issue17171@psf.upfronthosting.co.za>
2013年02月09日 18:19:45r.david.murraylinkissue17171 messages
2013年02月09日 18:19:44r.david.murraycreate

AltStyle によって変換されたページ (->オリジナル) /