diff -urN Python-3.2.2.orig/Lib/urllib/request.py Python-3.2.2/Lib/urllib/request.py --- Python-3.2.2.orig/Lib/urllib/request.py 2011-09-03 12:16:44.000000000 -0400 +++ Python-3.2.2/Lib/urllib/request.py 2011-10-04 18:19:58.496762507 -0400 @@ -2116,7 +2116,7 @@ """Return the IP addresses of the current host.""" global _thishost if _thishost is None: - _thishost = tuple(socket.gethostbyname_ex(socket.gethostname()[2])) + _thishost = tuple(socket.gethostbyname_ex(socket.gethostname())[2]) return _thishost _ftperrors = None