SF bug #469910 by Alfonso Baciero: Bugfix for imaplib for macintosh

Pass binary mode to makefile().
This commit is contained in:
Guido van Rossum 2001-10-15 13:47:08 +00:00
parent 327798ca4a
commit c0f1bfec05
2 changed files with 2 additions and 1 deletions

View File

@ -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):

View File

@ -20,6 +20,7 @@ Ross Andrus
Jason Asbahr
David Ascher
Donovan Baarda
Alfonso Baciero
Stig Bakken
Greg Ball
Cesar Eduardo Barros