gh-127734: improve signature of urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ (#127735)

improve signature of urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
This commit is contained in:
Stephen Morton 2024-12-08 10:46:34 -08:00 committed by GitHub
parent 7f8ec52302
commit a03efb533a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -876,9 +876,9 @@ class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr):
class HTTPPasswordMgrWithPriorAuth(HTTPPasswordMgrWithDefaultRealm):
def __init__(self, *args, **kwargs):
def __init__(self):
self.authenticated = {}
super().__init__(*args, **kwargs)
super().__init__()
def add_password(self, realm, uri, user, passwd, is_authenticated=False):
self.update_authenticated(uri, is_authenticated)