|
if self.http_proxy is not None: |
|
os.environ["http_proxy"] = self.http_proxy |
|
os.environ["http_proxy"] = self.http_proxy |
|
else: |
|
os.environ.pop("http_proxy", None) |
|
os.environ.pop("https_proxy", None) |
The line os.environ["http_proxy"] = self.http_proxy appears twice:
|
os.environ["http_proxy"] = self.http_proxy |
while the https_proxy environment variable is not restored.
It should probably rather read:
if self.http_proxy is not None:
os.environ["http_proxy"] = self.http_proxy
else:
os.environ.pop("http_proxy", None)
if self.https_proxy is not None:
os.environ["https_proxy"] = self.https_proxy
else:
os.environ.pop("https_proxy", None)
gml_application_schema_toolbox/gml_application_schema_toolbox/core/proxy.py
Lines 55 to 60 in 607accd
The line
os.environ["http_proxy"] = self.http_proxyappears twice:gml_application_schema_toolbox/gml_application_schema_toolbox/core/proxy.py
Line 56 in 607accd
while the
https_proxyenvironment variable is not restored.It should probably rather read: