diff options
author | Guido van Rossum <guido@python.org> | 2001-10-15 13:47:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-10-15 13:47:08 (GMT) |
commit | c0f1bfec05fcbd44390156f07008dc90f25ef487 (patch) | |
tree | b93eeb52a928fbf4ad428b19cc7515266cab5333 | |
parent | 327798ca4a93863c2d46968fcfc326cbfedd4b7a (diff) | |
download | cpython-c0f1bfec05fcbd44390156f07008dc90f25ef487.zip cpython-c0f1bfec05fcbd44390156f07008dc90f25ef487.tar.gz cpython-c0f1bfec05fcbd44390156f07008dc90f25ef487.tar.bz2 |
SF bug #469910 by Alfonso Baciero: Bugfix for imaplib for macintosh
Pass binary mode to makefile().
-rw-r--r-- | Lib/imaplib.py | 2 | ||||
-rw-r--r-- | Misc/ACKS | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index c82b455..005cf16 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -207,7 +207,7 @@ class IMAP4: """ self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.connect((self.host, self.port)) - self.file = self.sock.makefile('r') + self.file = self.sock.makefile('rb') def read(self, size): @@ -20,6 +20,7 @@ Ross Andrus Jason Asbahr David Ascher Donovan Baarda +Alfonso Baciero Stig Bakken Greg Ball Cesar Eduardo Barros |