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:
parent
42b3f4cf9f
commit
6366a2c264
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user