[Python-checkins] r74964 - python/trunk/Lib/urllib.py

ronald.oussoren python-checkins at python.org
Sun Sep 20 12:54:07 CEST 2009


Author: ronald.oussoren
Date: Sun Sep 20 12:54:07 2009
New Revision: 74964

Log:
Followup for r74962


Modified:
   python/trunk/Lib/urllib.py

Modified: python/trunk/Lib/urllib.py
==============================================================================
--- python/trunk/Lib/urllib.py	(original)
+++ python/trunk/Lib/urllib.py	Sun Sep 20 12:54:07 2009
@@ -1354,9 +1354,8 @@
             if proxy_settings['exclude_simple']:
                 return True
 
-        for value in proxy_settings.get('exceptions'):
+        for value in proxy_settings.get('exceptions', ()):
             # Items in the list are strings like these: *.local, 169.254/16
-            value = sc.CFArrayGetValueAtIndex(exceptions, index)
             if not value: continue
 
             m = re.match(r"(\d+(?:\.\d+)*)(/\d+)?", value)


More information about the Python-checkins mailing list