]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth.__init__...
authorStephen Morton <git@tungol.org>
Sun, 8 Dec 2024 18:46:34 +0000 (10:46 -0800)
committerGitHub <noreply@github.com>
Sun, 8 Dec 2024 18:46:34 +0000 (10:46 -0800)
improve signature of urllib.request.HTTPPasswordMgrWithPriorAuth.__init__

Lib/urllib/request.py

index 7ef85431b718ad7c319cbfb939d27a1902570000..c5a6a18a32bba10f10f536be2e43c831d3e04c93 100644 (file)
@@ -876,9 +876,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)