summaryrefslogtreecommitdiffstats
path: root/Lib/imaplib.py
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 /Lib/imaplib.py
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().
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r--Lib/imaplib.py2
1 files changed, 1 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):