[Python-checkins] r81024 - python/branches/py3k/Lib/urllib/request.py

mark.dickinson python-checkins at python.org
Sun May 9 14:16:29 CEST 2010


Author: mark.dickinson
Date: Sun May  9 14:16:29 2010
New Revision: 81024

Log:
Fix test_urllib2 failure on OS X.

Modified:
   python/branches/py3k/Lib/urllib/request.py

Modified: python/branches/py3k/Lib/urllib/request.py
==============================================================================
--- python/branches/py3k/Lib/urllib/request.py	(original)
+++ python/branches/py3k/Lib/urllib/request.py	Sun May  9 14:16:29 2010
@@ -2159,7 +2159,7 @@
 
         def ip2num(ipAddr):
             parts = ipAddr.split('.')
-            parts = map(int, parts)
+            parts = list(map(int, parts))
             if len(parts) != 4:
                 parts = (parts + [0, 0, 0, 0])[:4]
             return (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8) | parts[3]


More information about the Python-checkins mailing list