mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
Fix Python 2.6 incompatibility at mk_util.py
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
d2651f1afc
commit
0c0fe40446
|
@ -76,10 +76,7 @@ GPROF=False
|
|||
GIT_HASH=False
|
||||
|
||||
def check_output(cmd):
|
||||
try:
|
||||
return subprocess.check_output(cmd, shell=True).rstrip('\r\n')
|
||||
except:
|
||||
return subprocess.check_output(cmd).rstrip('\r\n')
|
||||
return subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0].rstrip('\r\n')
|
||||
|
||||
def git_hash():
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue