commit | 809073bee109f72c939be1a5631d03ede97fbf50 | [log] [tgz] |
---|---|---|
author | Ronald Oussoren <ronaldoussoren@mac.com> | Sun Sep 20 10:54:07 2009 +0000 |
committer | Ronald Oussoren <ronaldoussoren@mac.com> | Sun Sep 20 10:54:07 2009 +0000 |
tree | d203c6f90794db387c809f46f6ff8e2b7da2a256 | |
parent | 51f0633efdc31ae29d5813881a96b0c737fca075 [diff] [blame] |
Followup for r74962
diff --git a/Lib/urllib.py b/Lib/urllib.py index 51e8df9..8b4029d 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py
@@ -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)