Skip to content

Commit 5f5624d

Browse files
[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 a03efb5) Co-authored-by: Stephen Morton <[email protected]>
1 parent 87f912a commit 5f5624d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/urllib/request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,9 @@ def find_user_password(self, realm, authuri):
903903

904904
class HTTPPasswordMgrWithPriorAuth(HTTPPasswordMgrWithDefaultRealm):
905905

906-
def __init__(self, *args, **kwargs):
906+
def __init__(self):
907907
self.authenticated = {}
908-
super().__init__(*args, **kwargs)
908+
super().__init__()
909909

910910
def add_password(self, realm, uri, user, passwd, is_authenticated=False):
911911
self.update_authenticated(uri, is_authenticated)

0 commit comments

Comments
 (0)