Skip to content

Commit

Permalink
Remove the date from the Python version number.
Browse files Browse the repository at this point in the history
This messed with the identification in benchmarks/id.sh.
  • Loading branch information
Andy Chu committed Aug 19, 2018
1 parent ca16bca commit 3eb1f37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ def ShowAppVersion(app_name):
# The platform.py module has a big regex that parses sys.version, but we
# don't want to depend on regular expressions. So we will do our own parsing
# here.
py_version, py_compiler = sys.version.splitlines()
version_line, py_compiler = sys.version.splitlines()

# Pick off the first part of '2.7.12 (default, ...)'
py_version = version_line.split()[0]

assert py_compiler.startswith('['), py_compiler
assert py_compiler.endswith(']'), py_compiler
py_compiler = py_compiler[1:-1]
Expand Down

0 comments on commit 3eb1f37

Please sign in to comment.