]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 Dec 2024 20:16:03 +0000 (21:16 +0100)
committerGitHub <noreply@github.com>
Sun, 8 Dec 2024 20:16:03 +0000 (12:16 -0800)
gh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth.__init__` (GH-127735)

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

Co-authored-by: Stephen Morton <git@tungol.org>
Lib/urllib/request.py

index 9a559f44152be5e48196002e11ab41a434316f91..c7ded0f67fc67e7af9274a31e02b49e56b655cf6 100644 (file)
@@ -903,9 +903,9 @@ class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr):
 
 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)