summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-05-09 12:16:29 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-05-09 12:16:29 (GMT)
commitc3f45c25de2214d7d41c6a8201dce648ba6cbc56 (patch)
tree9cde1b889282d3734028f1a071c490afb24048ae /Lib
parentffa2e4ee5548d8e158057b99c9680adf56255c1b (diff)
downloadcpython-c3f45c25de2214d7d41c6a8201dce648ba6cbc56.zip
cpython-c3f45c25de2214d7d41c6a8201dce648ba6cbc56.tar.gz
cpython-c3f45c25de2214d7d41c6a8201dce648ba6cbc56.tar.bz2
Fix test_urllib2 failure on OS X.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/urllib/request.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 068e7d7..c701360 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -2159,7 +2159,7 @@ if sys.platform == 'darwin':
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]