3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-09 04:31:24 +00:00

Fix for python decoding of command line output strings

Fixes #302
This commit is contained in:
Christoph M. Wintersteiger 2015-11-13 17:15:04 +00:00
parent 15c48eeaf9
commit 27dcd8c5b6
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ FPMATH="Default"
FPMATH_FLAGS="-mfpmath=sse -msse -msse2"
def check_output(cmd):
return (subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]).decode("utf-8").rstrip('\r\n')
return (subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]).decode(sys.stdout.encoding).rstrip('\r\n')
def git_hash():
try: