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 /Lib | |
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().
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/imaplib.py | 2 |
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): |