3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-06 22:23:22 +00:00

fix for string decoding in build scripts

This commit is contained in:
Christoph M. Wintersteiger 2015-11-14 15:42:49 +00:00
parent 1aafff0395
commit 05eb78ccac
2 changed files with 8 additions and 6 deletions

View file

@ -93,9 +93,10 @@ def check_output(cmd):
out = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
if out != None:
enc = sys.stdout.encoding
if enc != None: out.decode(enc).rstrip('\r\n')
else: out.rstrip('\r\n')
else: ""
if enc != None: return out.decode(enc).rstrip('\r\n')
else: return out.rstrip('\r\n')
else:
return ""
def git_hash():
try: