From b198ad23e2459a80171fdfdb42173045bccea0e4 Mon Sep 17 00:00:00 2001 From: Xqt Date: Tue, 3 Dec 2024 10:50:59 +0000 Subject: [PATCH] Revert "Announce support of MediaWiki < 1.23 is to be dropped" This reverts commit 4437d70a158f8efd33ead986e912d021d409b928. Reason for revert: for Pywikibot 9.6.1 and 10 Change-Id: Iacdd1d9a5e496c8ac15976914f8af40c4f03db77 --- pywikibot/site/_apisite.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py index 3802d23b29..81c3a85e5a 100644 --- a/pywikibot/site/_apisite.py +++ b/pywikibot/site/_apisite.py @@ -1246,14 +1246,6 @@ def version(self) -> str: pywikibot.error(msg) raise - if MediaWikiVersion(version) < '1.31': - warn('\n' - + fill(f'Support of MediaWiki {version} will be dropped. ' - 'It is recommended to use MediaWiki 1.31 or above. ' - 'You may use every Pywikibot 9.X for older MediaWiki ' - 'versions. See T378984 for further information.'), - FutureWarning) - if MediaWikiVersion(version) < '1.27': raise RuntimeError(f'Pywikibot "{pywikibot.__version__}" does not ' f'support MediaWiki "{version}".\n'