Merged revisions 82284 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82284 | ronald.oussoren | 2010-06-27 15:59:39 +0200 (Sun, 27 Jun 2010) | 4 lines

  Fix for Issue8883: without this patch test_urllib will fail
  when there is a bare IP address in the "Bypass proxy settings
  for these Hosts & Domains" list on MacOSX.
........
This commit is contained in:
Ronald Oussoren 2010-06-27 14:00:56 +00:00
parent 3d3ffd8c44
commit 68f74ba556
1 changed files with 7 additions and 2 deletions

View File

@ -1375,7 +1375,12 @@ if sys.platform == 'darwin':
continue
base = ip2num(m.group(1))
mask = int(m.group(2)[1:])
mask = m.group(2)
if mask is None:
mask = 8 * (m.group(1).count('.') + 1)
else:
mask = int(mask[1:])
mask = 32 - mask
if (hostIP >> mask) == (base >> mask):