Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sivel/speedtest-cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2019-01-23 20:34:23 +0300
committerMatt Martz <matt@sivel.net>2019-01-23 20:34:23 +0300
commitb0b826c8703797eb2011ab70d2a2b6ad8f4a08e2 (patch)
treeb0c5895efd4ec4c9e5d579673a2deefb91b3263f
parent9ac1091eae4d454354337314ef2b3594b75e9b81 (diff)
Add the python version to the version output
-rwxr-xr-xspeedtest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/speedtest.py b/speedtest.py
index dcda09c..17ba7d9 100755
--- a/speedtest.py
+++ b/speedtest.py
@@ -1602,7 +1602,8 @@ def ctrl_c(shutdown_event):
def version():
"""Print the version"""
- printer(__version__)
+ printer('speedtest-cli %s' % __version__)
+ printer('Python %s' % sys.version.replace('\n', ''))
sys.exit(0)