jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/611947 )
Change subject: Update version to py3 ......................................................................
Update version to py3
Bug: T257399 Change-Id: Idbba4c63e8000f51c5c6ab519d2da7ba8e8f7087 --- M scripts/version.py 1 file changed, 3 insertions(+), 5 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/version.py b/scripts/version.py index b35ef80..ed06b6e 100755 --- a/scripts/version.py +++ b/scripts/version.py @@ -6,8 +6,6 @@ # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - import codecs import os import sys @@ -19,7 +17,7 @@ try: import requests except ImportError: - class DummyRequests(object): + class DummyRequests:
"""Fake requests instance."""
@@ -30,14 +28,14 @@ WMF_CACERT = 'MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBs'
-def check_environ(environ_name): +def check_environ(environ_name) -> None: """Print environment variable.""" pywikibot.output('{0}: {1}'.format(environ_name, os.environ.get(environ_name, 'Not set')))
-def main(*args): +def main(*args) -> None: """Print pywikibot version and important settings.""" pywikibot.output('Pywikibot: ' + getversion()) pywikibot.output('Release version: ' + pywikibot.__version__)
pywikibot-commits@lists.wikimedia.org