# HG changeset patch # User Elson Wei # Date 1444280199 -28800 # Thu Oct 08 12:56:39 2015 +0800 # Node ID 190544fbb69fc7e8f8834725b9031777285ca150 # Parent 3291e6132a674606af028be2d500701e5ff8285a Ignore a empty test host in proxyOverride list diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -2665,6 +2665,8 @@ proxyOverride = proxyOverride.split(';') # now check if we match one of the registry values. for test in proxyOverride: + if not test: + continue if test == '': if '.' not in rawHost: return 1