mirror of https://github.com/python/cpython.git
Fix test_urllib2 failure on OS X.
This commit is contained in:
parent
ffa2e4ee55
commit
c3f45c25de
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue