summaryrefslogtreecommitdiffstats
path: root/Lib/imaplib.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-05-15 12:15:51 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-05-15 12:15:51 (GMT)
commitc1d0936d5b96da4bd2e127d235bf65a4f81609bf (patch)
tree4b6a0f25c7553d31f5955174940bdc74cd16f8f3 /Lib/imaplib.py
parenta5503d5099beba75a976c8a280e92945f3738d27 (diff)
downloadcpython-c1d0936d5b96da4bd2e127d235bf65a4f81609bf.zip
cpython-c1d0936d5b96da4bd2e127d235bf65a4f81609bf.tar.gz
cpython-c1d0936d5b96da4bd2e127d235bf65a4f81609bf.tar.bz2
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. ........
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r--Lib/imaplib.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py
index 6469df2..df35cb1 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -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"