Skip to content

Commit

Permalink
pythongh-127734: improve signature of `urllib.request.HTTPPasswordMgr…
Browse files Browse the repository at this point in the history
…WithPriorAuth.__init__` (python#127735)

improve signature of urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
  • Loading branch information
tungol authored Dec 8, 2024
1 parent 7f8ec52 commit a03efb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/urllib/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,9 +876,9 @@ def find_user_password(self, realm, authuri):

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)
Expand Down

0 comments on commit a03efb5

Please sign in to comment.