Fix test_urllib2 failure on OS X.

This commit is contained in:
Mark Dickinson 2010-05-09 12:16:29 +00:00
parent ffa2e4ee55
commit c3f45c25de
1 changed files with 1 additions and 1 deletions

View File

@ -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]