https://github.com/python/cpython/commit/a03efb533a58fd13fb0cc7f4a5c02c8406a407bd
commit: a03efb533a58fd13fb0cc7f4a5c02c8406a407bd
branch: main
author: Stephen Morton <[email protected]>
committer: orsenthil <[email protected]>
date: 2024-12-08T10:46:34-08:00
summary:

gh-127734: improve signature of 
`urllib.request.HTTPPasswordMgrWithPriorAuth.__init__` (#127735)

improve signature of urllib.request.HTTPPasswordMgrWithPriorAuth.__init__

files:
M Lib/urllib/request.py

diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 7ef85431b718ad..c5a6a18a32bba1 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -876,9 +876,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)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to