mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 14:13:23 +00:00
fix for string decoding in build scripts
This commit is contained in:
parent
2277a52d80
commit
639dfc4b30
2 changed files with 11 additions and 2 deletions
|
@ -96,7 +96,11 @@ if sys.version < '3':
|
|||
return s
|
||||
else:
|
||||
def _to_pystr(s):
|
||||
return s.decode(sys.stdout.encoding)
|
||||
if s != None:
|
||||
enc = sys.stdout.encoding
|
||||
if enc != None: s.decode(enc)
|
||||
else: s
|
||||
else: ""
|
||||
|
||||
def init(PATH):
|
||||
global _lib
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue