Skip to content

Commit

Permalink
[3.12] pythongh-127734: improve signature of `urllib.request.HTTPPass…
Browse files Browse the repository at this point in the history
…wordMgrWithPriorAuth.__init__` (pythonGH-127735) (python#127745)

pythongh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth.__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
miss-islington and tungol authored Dec 8, 2024
1 parent 87f912a commit 5f5624d
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 @@ -903,9 +903,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 5f5624d

Please sign in to comment.