diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-05-09 12:16:29 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-05-09 12:16:29 (GMT) |
commit | c3f45c25de2214d7d41c6a8201dce648ba6cbc56 (patch) | |
tree | 9cde1b889282d3734028f1a071c490afb24048ae /Lib | |
parent | ffa2e4ee5548d8e158057b99c9680adf56255c1b (diff) | |
download | cpython-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.py | 2 |
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] |