mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
SF bug #469910 by Alfonso Baciero: Bugfix for imaplib for macintosh
Pass binary mode to makefile().
This commit is contained in:
parent
327798ca4a
commit
c0f1bfec05
2 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -20,6 +20,7 @@ Ross Andrus
|
|||
Jason Asbahr
|
||||
David Ascher
|
||||
Donovan Baarda
|
||||
Alfonso Baciero
|
||||
Stig Bakken
|
||||
Greg Ball
|
||||
Cesar Eduardo Barros
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue