summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-15 13:47:08 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-15 13:47:08 (GMT)
commitc0f1bfec05fcbd44390156f07008dc90f25ef487 (patch)
treeb93eeb52a928fbf4ad428b19cc7515266cab5333
parent327798ca4a93863c2d46968fcfc326cbfedd4b7a (diff)
downloadcpython-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.py2
-rw-r--r--Misc/ACKS1
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):
diff --git a/Misc/ACKS b/Misc/ACKS
index 7ee0b87..6569766 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -20,6 +20,7 @@ Ross Andrus
Jason Asbahr
David Ascher
Donovan Baarda
+Alfonso Baciero
Stig Bakken
Greg Ball
Cesar Eduardo Barros