From fe3c38a186766bea38861cae9c173642b85c639b Mon Sep 17 00:00:00 2001 From: xqt Date: Sun, 15 Dec 2024 14:51:13 +0100 Subject: [PATCH] cleanup: Support for MediaWiki <= 1.30 was dropped Bug: T378984 Change-Id: I90807d956798f5e199f1a1627b74758b56bc0c11 --- pywikibot/login.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pywikibot/login.py b/pywikibot/login.py index 5760c3a62c..b73776fbb2 100644 --- a/pywikibot/login.py +++ b/pywikibot/login.py @@ -445,10 +445,7 @@ def login_to_site(self) -> None: del login_request['rememberMe'] continue - # messagecode was introduced with 1.29.0-wmf.14 - # but older wikis are still supported login_throttled = response.get('messagecode') == 'login-throttled' - if (status == 'Throttled' or status == self.keyword('fail') and (login_throttled or 'wait' in fail_reason)): wait = response.get('wait')