diff options
Diffstat (limited to 'lorrycontroller/proxy.py')
-rw-r--r-- | lorrycontroller/proxy.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lorrycontroller/proxy.py b/lorrycontroller/proxy.py index 53d0667..22729d3 100644 --- a/lorrycontroller/proxy.py +++ b/lorrycontroller/proxy.py @@ -17,7 +17,6 @@ import json import os import urllib -import urllib2 def build_proxy_url(protocol, proxy_config): @@ -55,12 +54,3 @@ def setup_proxy(config_filename): # set the required environment variables os.environ['http_proxy'] = http_proxy_url os.environ['https_proxy'] = https_proxy_url - - # create a ProxyHandler - proxies = {'http_proxy': http_proxy_url, - 'https_proxy': https_proxy_url} - proxy_handler = urllib2.ProxyHandler(proxies) - - # install an opener to use the proxy - opener = urllib2.build_opener(proxy_handler) - urllib2.install_opener(opener) |