Skip to content

Commit

Permalink
cleanup: Support for MediaWiki <= 1.30 was dropped
Browse files Browse the repository at this point in the history
Bug: T378984
Change-Id: I90807d956798f5e199f1a1627b74758b56bc0c11
  • Loading branch information
xqt committed Dec 15, 2024
1 parent 33d612c commit fe3c38a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pywikibot/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit fe3c38a

Please sign in to comment.