jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/644188 )
Change subject: [doc] Announce support of MediaWiki < 1.23 is to be dropped ......................................................................
[doc] Announce support of MediaWiki < 1.23 is to be dropped
Bug: T268979 Change-Id: I019ff7c3d5fa3a5a1285ea19a6aaf3164e0e6cfb --- M pywikibot/site/__init__.py 1 file changed, 8 insertions(+), 0 deletions(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site/__init__.py b/pywikibot/site/__init__.py index 28e6d8e..1a73ac8 100644 --- a/pywikibot/site/__init__.py +++ b/pywikibot/site/__init__.py @@ -1470,6 +1470,14 @@ pywikibot.error(msg) raise
+ if MediaWikiVersion(version) < '1.23': + warn('\n' + + fill('Support of MediaWiki {version} will be dropped. ' + 'It is recommended to use MediaWiki 1.23 or above. ' + 'You may use every Pywikibot 5.X for older MediaWiki ' + 'versions. See T268979 for further information.' + .format(version=version)), FutureWarning) + if MediaWikiVersion(version) < '1.19': raise RuntimeError( 'Pywikibot "{}" does not support MediaWiki "{}".\n'