mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Issue #1655: Make imaplib IPv6-capable. Patch by Derek Morr.
This commit is contained in:
parent
490096e760
commit
52035a04ab
2 changed files with 4 additions and 4 deletions
|
@ -226,8 +226,7 @@ class IMAP4:
|
|||
"""
|
||||
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 @@ else:
|
|||
"""
|
||||
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)
|
||||
|
||||
|
||||
|
|
|
@ -293,6 +293,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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue