]> granicus.if.org Git - python/commitdiff
Merged revisions 74964 via svnmerge from
authorRonald Oussoren <ronaldoussoren@mac.com>
Sun, 20 Sep 2009 10:54:47 +0000 (10:54 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Sun, 20 Sep 2009 10:54:47 +0000 (10:54 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74964 | ronald.oussoren | 2009-09-20 12:54:07 +0200 (Sun, 20 Sep 2009) | 2 lines

  Followup for r74962
........

Lib/urllib.py

index b24e9eafc3477c2f3dea699c3eeca5430abf91ef..a5c8fa241cf2daed101e4ee7e14927e4b2165def 100644 (file)
@@ -1358,9 +1358,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)