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

Issue #1664: Make nntplib IPv6-capable. Patch by Derek Morr.

(Unfortunately, nntplib doesn't have a test suite)
üst cbb4f9ef
...@@ -109,8 +109,7 @@ class NNTP: ...@@ -109,8 +109,7 @@ class NNTP:
""" """
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((self.host, self.port))
self.file = self.sock.makefile('rb') self.file = self.sock.makefile('rb')
self.debugging = 0 self.debugging = 0
self.welcome = self.getresp() self.welcome = self.getresp()
......
...@@ -492,6 +492,7 @@ Doug Moen ...@@ -492,6 +492,7 @@ Doug Moen
The Dragon De Monsyne The Dragon De Monsyne
Skip Montanaro Skip Montanaro
Paul Moore Paul Moore
Derek Morr
James A Morrison James A Morrison
Sjoerd Mullender Sjoerd Mullender
Sape Mullender Sape Mullender
......
...@@ -293,6 +293,8 @@ Core and Builtins ...@@ -293,6 +293,8 @@ Core and Builtins
Library Library
------- -------
- Issue #1664: Make nntplib IPv6-capable. Patch by Derek Morr.
- Issue #6022: a test file was created in the current working directory by - Issue #6022: a test file was created in the current working directory by
test_get_outputs in Distutils. test_get_outputs in Distutils.
......
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