Skip to content

Commit

Permalink
Fix status.py for Python 3 (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmos authored May 15, 2019
1 parent e39fbfa commit f42fd8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions status.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ def run(*cmd):
output, err = process.communicate()
if process.wait():
exit(1)
return output.strip()
return output.strip().decode()


def main():
tags = run("git", "describe", "--tags")
print("STABLE_buildVersion", tags.split(b"-")[0])
print("STABLE_buildVersion", tags.split("-")[0])

revision = run("git", "rev-parse", "HEAD")
print("STABLE_buildScmRevision", revision)
Expand Down

0 comments on commit f42fd8f

Please sign in to comment.