Commit c3f45c25 authored by Mark Dickinson's avatar Mark Dickinson

Fix test_urllib2 failure on OS X.

parent ffa2e4ee
......@@ -2159,7 +2159,7 @@ if sys.platform == 'darwin':
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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment