py3: fix teuthology version banner for py3
@@ -37,10 +37,10 @@ __version__ = '1.0.0'
# do our best, but if it fails, continue with above
try:
- __version__ += '-' + subprocess.check_output(
+ __version__ += '-' + str(subprocess.check_output(
'git rev-parse --short HEAD'.split(),
cwd=os.path.dirname(os.path.realpath(__file__))
- ).strip()
+ ).decode()).strip()
except Exception as e:
# before logging; should be unusual
print("Can't get version from git rev-parse %s" % e, file=sys.stderr)
