jenkins-bot submitted this change.
Update version to py3
Bug: T257399
Change-Id: Idbba4c63e8000f51c5c6ab519d2da7ba8e8f7087
---
M scripts/version.py
1 file changed, 3 insertions(+), 5 deletions(-)
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__)
To view, visit change 611947. To unsubscribe, or for help writing mail filters, visit settings.