[Python-checkins] cpython (2.7): Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified

ronald.oussoren python-checkins at python.org
Mon Mar 14 23:54:31 CET 2011


http://hg.python.org/cpython/rev/8f0756010720
changeset:   68476:8f0756010720
branch:      2.7
parent:      68452:bcca0a6ebbd2
user:        Ronald Oussoren <ronaldoussoren at mac.com>
date:        Mon Mar 14 18:53:59 2011 -0400
summary:
  Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified
IP addresses in the proxy exception list.

files:
  Lib/urllib.py
  Misc/NEWS

diff --git a/Lib/urllib.py b/Lib/urllib.py
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -1396,7 +1396,7 @@
 
                 else:
                     mask = int(mask[1:])
-                    mask = 32 - mask
+                mask = 32 - mask
 
                 if (hostIP >> mask) == (base >> mask):
                     return True
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -43,6 +43,9 @@
 Library
 -------
 
+- Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified 
+  IP addresses in the proxy exception list. 
+
 - Issue #11131: Fix sign of zero in plus and minus operations when
   the context rounding mode is ROUND_FLOOR.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list