diff --git a/package_control/downloaders/urllib_downloader.py b/package_control/downloaders/urllib_downloader.py index f9769a46..72b36b05 100644 --- a/package_control/downloaders/urllib_downloader.py +++ b/package_control/downloaders/urllib_downloader.py @@ -299,7 +299,7 @@ def setup_opener(self, url, timeout): user_agent=self.settings.get('user_agent') )) else: - handlers.append(DebuggableHTTPHandler(debug=debug, passwd=password_manager)) + handlers.append(DebuggableHTTPHandler(debug=debug)) self.opener = build_opener(*handlers) def supports_ssl(self): diff --git a/package_control/http/debuggable_http_connection.py b/package_control/http/debuggable_http_connection.py index 584d0b49..e92932a3 100644 --- a/package_control/http/debuggable_http_connection.py +++ b/package_control/http/debuggable_http_connection.py @@ -15,8 +15,6 @@ class DebuggableHTTPConnection(HTTPConnection): _debug_protocol = 'HTTP' def __init__(self, host, port=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, **kwargs): - self.passwd = kwargs.get('passwd') - if 'debug' in kwargs and kwargs['debug']: self.debuglevel = 5 elif 'debuglevel' in kwargs: diff --git a/package_control/http/debuggable_http_handler.py b/package_control/http/debuggable_http_handler.py index eabf34da..6391efce 100644 --- a/package_control/http/debuggable_http_handler.py +++ b/package_control/http/debuggable_http_handler.py @@ -17,11 +17,9 @@ def __init__(self, debuglevel=0, debug=False, **kwargs): self._debuglevel = 5 else: self._debuglevel = debuglevel - self.passwd = kwargs.get('passwd') def http_open(self, req): def http_class_wrapper(host, **kwargs): - kwargs['passwd'] = self.passwd if 'debuglevel' not in kwargs: kwargs['debuglevel'] = self._debuglevel return DebuggableHTTPConnection(host, **kwargs)