mirror of
https://github.com/python/cpython.git
synced 2024-12-18 14:24:33 +08:00
Merged revisions 72662 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72662 | antoine.pitrou | 2009-05-15 13:50:29 +0200 (ven., 15 mai 2009) | 3 lines Issue #1655: Make imaplib IPv6-capable. Patch by Derek Morr. ........
This commit is contained in:
parent
a5503d5099
commit
c1d0936d5b
@ -222,9 +222,7 @@ class IMAP4:
|
||||
|
||||
|
||||
def _create_socket(self):
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.connect((self.host, self.port))
|
||||
return sock
|
||||
return socket.create_connection((self.host, self.port))
|
||||
|
||||
def open(self, host = '', port = IMAP4_PORT):
|
||||
"""Setup connection to remote server on "host:port"
|
||||
|
Loading…
Reference in New Issue
Block a user