]> granicus.if.org Git - python/commitdiff
Followup for r74962
authorRonald Oussoren <ronaldoussoren@mac.com>
Sun, 20 Sep 2009 10:54:07 +0000 (10:54 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Sun, 20 Sep 2009 10:54:07 +0000 (10:54 +0000)
Lib/urllib.py

index 51e8df9c89a889f1d9042677d370d7316ab6ab49..8b4029db6f3d0740452cfdf5244cd02839c808b8 100644 (file)
@@ -1354,9 +1354,8 @@ if sys.platform == 'darwin':
             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)