[Python-checkins] r72662 - in python/trunk: Lib/imaplib.py Misc/NEWS
antoine.pitrou
python-checkins at python.org
Fri May 15 13:50:29 CEST 2009
Author: antoine.pitrou
Date: Fri May 15 13:50:29 2009
New Revision: 72662
Log:
Issue #1655: Make imaplib IPv6-capable. Patch by Derek Morr.
Modified:
python/trunk/Lib/imaplib.py
python/trunk/Misc/NEWS
Modified: python/trunk/Lib/imaplib.py
==============================================================================
--- python/trunk/Lib/imaplib.py (original)
+++ python/trunk/Lib/imaplib.py Fri May 15 13:50:29 2009
@@ -226,8 +226,7 @@
"""
self.host = host
self.port = port
- self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- self.sock.connect((host, port))
+ self.sock = socket.create_connection((host, port))
self.file = self.sock.makefile('rb')
@@ -1145,8 +1144,7 @@
"""
self.host = host
self.port = port
- self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- self.sock.connect((host, port))
+ self.sock = socket.create_connection((host, port))
self.sslobj = ssl.wrap_socket(self.sock, self.keyfile, self.certfile)
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Fri May 15 13:50:29 2009
@@ -293,6 +293,8 @@
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.
More information about the Python-checkins
mailing list