jenkins-bot has submitted this change and it was merged.
Change subject: [bugfix] fix syntax error vor py 2.6
......................................................................
[bugfix] fix syntax error vor py 2.6
{'alpha', '-alpha'} is a set construction for python > 2.6 but
breaks with invalid syntax for previous version. Use tuple instead.
https://travis-ci.org/wikimedia/pywikibot-core/jobs/112297292
Change-Id: I6abfe8498eb2603d344e29bfae64e567319b5669
---
M pywikibot/tools/__init__.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Mpaa: Looks good to me, approved
Xqt: Looks good to me, but someone else must approve
Dalba: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py
index 51c05df..94a6dcd 100644
--- a/pywikibot/tools/__init__.py
+++ b/pywikibot/tools/__init__.py
@@ -447,7 +447,7 @@
self._dev_version = (2, int(version_match.group(4)))
elif version_match.group(5):
self._dev_version = (3, int(version_match.group(5)))
- elif version_match.group(2) in {'alpha', '-alpha'}:
+ elif version_match.group(2) in ('alpha', '-alpha'):
self._dev_version = (1, )
else:
for handled in ('wmf', 'alpha', 'beta',
'rc'):
--
To view, visit
https://gerrit.wikimedia.org/r/273760
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6abfe8498eb2603d344e29bfae64e567319b5669
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>