jenkins-bot submitted this change.
cleanup: Support for MediaWiki <= 1.30 was dropped
Bug: T378984
Change-Id: I90807d956798f5e199f1a1627b74758b56bc0c11
---
M pywikibot/login.py
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/pywikibot/login.py b/pywikibot/login.py
index 5760c3a..b73776f 100644
--- a/pywikibot/login.py
+++ b/pywikibot/login.py
@@ -445,10 +445,7 @@
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')
To view, visit change 1104388. To unsubscribe, or for help writing mail filters, visit settings.