1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

framework/version: Specify default encoding when parsing commit id

This commit is contained in:
Marc Bonnici 2018-08-20 15:47:27 +01:00 committed by setrofim
parent 42b3f4cf9f
commit 6366a2c264

View File

@ -47,6 +47,6 @@ def get_commit():
if p.returncode:
return None
if sys.version_info[0] == 3 and isinstance(std, bytes):
return std[:8].decode(sys.stdout.encoding)
return std[:8].decode(sys.stdout.encoding or 'utf-8')
else:
return std[:8]