mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Issue #1664: Make nntplib IPv6-capable. Patch by Derek Morr.
(Unfortunately, nntplib doesn't have a test suite)
This commit is contained in:
parent
cbb4f9ef58
commit
eed30d830b
3 changed files with 4 additions and 2 deletions
|
@ -109,8 +109,7 @@ class NNTP:
|
|||
"""
|
||||
self.host = host
|
||||
self.port = port
|
||||
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self.sock.connect((self.host, self.port))
|
||||
self.sock = socket.create_connection((host, port))
|
||||
self.file = self.sock.makefile('rb')
|
||||
self.debugging = 0
|
||||
self.welcome = self.getresp()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue