mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.12] gh-127734: improve signature of urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ (GH-127735) (#127745)
gh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth.__init__` (GH-127735)
improve signature of urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
(cherry picked from commit a03efb533a)
Co-authored-by: Stephen Morton <git@tungol.org>
This commit is contained in:
parent
87f912ac18
commit
5f5624ddc8
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue