]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 72662 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 15 May 2009 12:15:51 +0000 (12:15 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 15 May 2009 12:15:51 +0000 (12:15 +0000)
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.
........

Lib/imaplib.py
Misc/NEWS

index 6469df2dcf04aa16dd9cf12c2c41e522e04025c3..df35cb14b02add7c711bce27af887b130c63ff26 100644 (file)
@@ -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"
index 9173a72e0d5c4babed4fea1140378cb14b14bf77..d3f4177c6564aa2dc712c61daa8ccab156b9f850 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -23,6 +23,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #1655: Make imaplib IPv6-capable. Patch by Derek Morr.
+
 - Issue #5918: Fix a crash in the parser module.
 
 - Issue #1664: Make nntplib IPv6-capable. Patch by Derek Morr.