Issue 4777: nntplib - python 2.5 (original) (raw)

nntplib.py on python2.5 is not IPv6 ready. The below patch at least makes connections on both ipv4 and ipv6 to servers.

This was taken out of bug: http://bugs.python.org/issue1664

if that helps...

platform: Linux hostnamehere 2.6.26.6-79.fc9.i686 #1 SMP Fri Oct 17 14:52:14 EDT 2008 i686 i686 i386 GNU/Linux

morrowc@tweezer:/tmp$ diff -U3 nntplib.py.orig nntplib.py --- nntplib.py.orig 2008-12-30 01:06:14.000000000 -0500 +++ nntplib.py 2008-12-30 01:07:33.000000000 -0500 @@ -109,8 +109,19 @@ """ self.host = host self.port = port

socket.SOCK_STREAM):