Kaydet (Commit) 52035a04 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Issue #1655: Make imaplib IPv6-capable. Patch by Derek Morr.

üst 490096e7
...@@ -226,8 +226,7 @@ class IMAP4: ...@@ -226,8 +226,7 @@ class IMAP4:
""" """
self.host = host self.host = host
self.port = port self.port = port
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock = socket.create_connection((host, port))
self.sock.connect((host, port))
self.file = self.sock.makefile('rb') self.file = self.sock.makefile('rb')
...@@ -1145,8 +1144,7 @@ else: ...@@ -1145,8 +1144,7 @@ else:
""" """
self.host = host self.host = host
self.port = port self.port = port
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock = socket.create_connection((host, port))
self.sock.connect((host, port))
self.sslobj = ssl.wrap_socket(self.sock, self.keyfile, self.certfile) self.sslobj = ssl.wrap_socket(self.sock, self.keyfile, self.certfile)
......
...@@ -293,6 +293,8 @@ Core and Builtins ...@@ -293,6 +293,8 @@ Core and Builtins
Library Library
------- -------
- Issue #1655: Make imaplib IPv6-capable. Patch by Derek Morr.
- Issue #5918: Fix a crash in the parser module. - Issue #5918: Fix a crash in the parser module.
- Issue #1664: Make nntplib IPv6-capable. Patch by Derek Morr. - Issue #1664: Make nntplib IPv6-capable. Patch by Derek Morr.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment