From: Stephen Morton Date: Sun, 8 Dec 2024 18:46:34 +0000 (-0800) Subject: gh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth.__init__... X-Git-Tag: v3.14.0a3~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a03efb533a58fd13fb0cc7f4a5c02c8406a407bd;p=thirdparty%2FPython%2Fcpython.git gh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth.__init__` (#127735) improve signature of urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ --- diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 7ef85431b718..c5a6a18a32bb 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -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)