jenkins-bot has submitted this change and it was merged.
Change subject: Clarify Python 2.6.5 or higher is required
......................................................................
Clarify Python 2.6.5 or higher is required
Due to
http://bugs.python.org/issue2646, calling
f(**{u'a': 'b'})
is not allowed.
Change-Id: Ib19247ba7fd21a673497f213bdb0f13bf785969b
---
M pwb.py
1 file changed, 4 insertions(+), 4 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pwb.py b/pwb.py
index b07b0e9..14178a8 100644
--- a/pwb.py
+++ b/pwb.py
@@ -79,16 +79,16 @@
if not os.environ.get("PY3", False):
if sys.version_info[0] != 2:
raise RuntimeError("ERROR: Pywikibot only runs under Python 2")
- if sys.version_info[1] < 6:
- raise RuntimeError("ERROR: Pywikibot only runs under Python 2.6 "
+ if sys.version_info < (2, 6, 5):
+ raise RuntimeError("ERROR: Pywikibot only runs under Python 2.6.5 "
"or higher")
else:
if sys.version_info[0] not in (2, 3):
raise RuntimeError("ERROR: Pywikipediabot only runs under Python 2 "
"or Python 3")
version = tuple(sys.version_info)[:3]
- if version < (2, 6):
- raise RuntimeError("ERROR: Pywikibot only runs under Python 2.6 "
+ if version < (2, 6, 5):
+ raise RuntimeError("ERROR: Pywikibot only runs under Python 2.6.5 "
"or higher")
if version >= (3, ) and version < (3, 3):
raise RuntimeError("ERROR: Pywikibot only runs under Python 3.3 "
--
To view, visit
https://gerrit.wikimedia.org/r/131343
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib19247ba7fd21a673497f213bdb0f13bf785969b
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>