From c0f1bfec05fcbd44390156f07008dc90f25ef487 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 15 Oct 2001 13:47:08 +0000 Subject: [PATCH] SF bug #469910 by Alfonso Baciero: Bugfix for imaplib for macintosh Pass binary mode to makefile(). --- Lib/imaplib.py | 2 +- Misc/ACKS | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/imaplib.py b/Lib/imaplib.py index c82b455ee81..005cf16019f 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 7ee0b8794a4..6569766ea99 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