diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index c701360c945..c912833cb58 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -1965,7 +1965,7 @@ def retry_https_basic_auth(self, url, realm, data=None): else: return self.open(newurl, data) - def get_user_passwd(self, host, realm, clear_cache = 0): + def get_user_passwd(self, host, realm, clear_cache=0): key = realm + '@' + host.lower() if key in self.auth_cache: if clear_cache: