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__` (pythonGH-127735)

improve signature of urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
(cherry picked from commit a03efb5)

Co-authored-by: Stephen Morton <[email protected]>
  • Loading branch information
tungol authored and miss-islington committed Dec 8, 2024
1 parent 2ba5190 commit a9d4dbe
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 @@ -878,9 +878,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 a9d4dbe

Please sign in to comment.