jenkins-bot submitted this change.

View Change

Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
[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(-)

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'

To view, visit change 644188. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I019ff7c3d5fa3a5a1285ea19a6aaf3164e0e6cfb
Gerrit-Change-Number: 644188
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Mpaa <mpaa.wiki@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged