Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64e5aa9

Browse files
committed
Fix for a bug in the fix for SF bug 503031. This time the OP verified
that it works. Bugfix candidate (this and the previous checkin, obviously).
1 parent 45afd54 commit 64e5aa9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/urllib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,8 +1279,8 @@ def getproxies_registry():
12791279
for p in proxyServer.split(';'):
12801280
protocol, address = p.split('=', 1)
12811281
# See if address has a type:// prefix
1282-
type, address = splittype(address)
1283-
if not type:
1282+
import re
1283+
if not re.match('^([^/:]+)://', address):
12841284
address = '%s://%s' % (protocol, address)
12851285
proxies[protocol] = address
12861286
else:

0 commit comments

Comments
 (0)