From c3f45c25de2214d7d41c6a8201dce648ba6cbc56 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Sun, 9 May 2010 12:16:29 +0000 Subject: [PATCH] Fix test_urllib2 failure on OS X. --- Lib/urllib/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 068e7d7116a..c701360c945 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -2159,7 +2159,7 @@ def proxy_bypass_macosx_sysconf(host): 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]