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]