File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858from lib .core .optiondict import optDict
5959from lib .core .settings import IS_WIN
6060from lib .core .settings import PLATFORM
61+ from lib .core .settings import PYVERSION
6162from lib .core .settings import SITE
6263from lib .core .settings import SUPPORTED_DBMS
6364from lib .core .settings import SUPPORTED_OS
@@ -546,7 +547,10 @@ def __setHTTPProxy():
546547 # can't be tunneled over an HTTP proxy natively by Python (<= 2.5)
547548 # urllib2 standard library
548549 if conf .scheme == "https" :
549- proxyHandler = ProxyHTTPSHandler (__proxyString )
550+ if PYVERSION >= "2.6" :
551+ proxyHandler = urllib2 .ProxyHandler ({"https" : __proxyString })
552+ else :
553+ proxyHandler = ProxyHTTPSHandler (__proxyString )
550554 else :
551555 proxyHandler = urllib2 .ProxyHandler ({"http" : __proxyString })
552556
You can’t perform that action at this time.
0 commit comments