From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 8 Dec 2024 20:15:35 +0000 (+0100) Subject: [3.13] gh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth... X-Git-Tag: v3.13.2~225 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b56100c77af54de75ff593252307dfea39bd3ad7;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth.__init__` (GH-127735) (#127744) 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 --- diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index b4882f4129e3..a2504a2b9c78 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -878,9 +878,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)