Skip to content

Commit c3f45c2

Browse files
committed
Fix test_urllib2 failure on OS X.
1 parent ffa2e4e commit c3f45c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/urllib/request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2159,7 +2159,7 @@ def proxy_bypass_macosx_sysconf(host):
21592159

21602160
def ip2num(ipAddr):
21612161
parts = ipAddr.split('.')
2162-
parts = map(int, parts)
2162+
parts = list(map(int, parts))
21632163
if len(parts) != 4:
21642164
parts = (parts + [0, 0, 0, 0])[:4]
21652165
return (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8) | parts[3]

0 commit comments

Comments
 (0)