XZise has uploaded a new change for review. https://gerrit.wikimedia.org/r/242397
Change subject: [FIX] MediaWikiVersion: Accept new wmf style ...................................................................... [FIX] MediaWikiVersion: Accept new wmf style With 1.27 the wmf version style changed adding a dash and period: * `MediaWiki 1.27.0-wmf.1` * `MediaWiki 1.26wmf24` This patch was manually backported from 0a6516e6 for the master branch. Bug: T114189 Change-Id: I458b44821d415be8e916978c728dc79451df376e --- M pywikibot/tools/__init__.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/97/242397/1 diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py index 8d9c4ff..3c783e9 100644 --- a/pywikibot/tools/__init__.py +++ b/pywikibot/tools/__init__.py @@ -322,7 +322,7 @@ Any other suffixes are considered invalid. """ - MEDIAWIKI_VERSION = re.compile(r'^(\d+(?:\.\d+)+)(wmf(\d+)|alpha|beta(\d+)|-?rc\.?(\d+))?$') + MEDIAWIKI_VERSION = re.compile(r'^(\d+(?:\.\d+)+)(-?wmf\.?(\d+)|alpha|beta(\d+)|-?rc\.?(\d+))?$') def parse(self, vstring): """Parse version string.""" -- To view, visit https://gerrit.wikimedia.org/r/242397 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I458b44821d415be8e916978c728dc79451df376e Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: XZise <commodorefabia...@gmx.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits