[issue1210] imaplib does not run under Python 3

STINNER Victor report at bugs.python.org
Wed Oct 15 00:34:52 CEST 2008


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

New version of my bytes patch:
 - fix IMAP4_stream: use subprocess.Popen() as my previous 
imap_stream.patch but use bytes instead of characters
 - fix IMAP4_SSL: sslobj wasn't set in IMAP4_SSL.open() but used, for 
example, in read() method; remove duplicate method (simplify the code)
 - IMAP4.read(): call file.read() multiple times if the result is 
smaller than size (needed especially for the SSL version); FIXME: does 
this function raise an error of EOF or just loop forever? should we 
stop the loop if data is b''?

Added file: http://bugs.python.org/file11795/imaplib_bytes-2.patch

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


More information about the Python-bugs-list mailing list