Restyling old form of urlparse

This commit is contained in:
Miroslav Stampar
2013-01-10 15:41:07 +01:00
parent da7f63f125
commit acfeeb4f51
3 changed files with 8 additions and 8 deletions

View File

@@ -931,9 +931,9 @@ def _setHTTPProxy():
logger.debug(debugMsg)
proxySplit = urlparse.urlsplit(conf.proxy)
hostnamePort = proxySplit[1].split(":")
hostnamePort = proxySplit.netloc.split(":")
scheme = proxySplit[0].upper()
scheme = proxySplit.scheme.upper()
hostname = hostnamePort[0]
port = None
username = None