[issue9298] binary email attachment issue with base64 encoding

Yves Dorfsman report at bugs.python.org
Thu Feb 10 02:29:36 CET 2011


Yves Dorfsman <yves at zioup.com> added the comment:

Solution:
In /usr/lib/python3.1/email/encoders.py, use encodebytes instead of b64encode:

--- encoders.py 2011-02-08 09:37:21.025030051 -0700
+++ encoders.py.yves    2011-02-08 09:38:04.945608365 -0700
@@ -12,7 +12,7 @@
     ]
 
 
-from base64 import b64encode as _bencode
+from base64 import encodebytes as _bencode
 from quopri import encodestring as _encode

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9298>
_______________________________________


More information about the Python-bugs-list mailing list