Skip to content

Commit

Permalink
Fix test_urllib2 failure on OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickinson committed May 9, 2010
1 parent ffa2e4e commit c3f45c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/urllib/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit c3f45c2

Please sign in to comment.