mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
Use sys.getdefaultencoding() instead of sys.stdout.encoding (#6612)
This commit is contained in:
parent
6e7d80633d
commit
1a9990a92f
4 changed files with 6 additions and 6 deletions
|
@ -37,7 +37,7 @@ def help(ous):
|
|||
out = subprocess.Popen([z3_exe, "-pm"],stdout=subprocess.PIPE).communicate()[0]
|
||||
modules = ["global"]
|
||||
if out != None:
|
||||
out = out.decode(sys.stdout.encoding)
|
||||
out = out.decode(sys.getdefaultencoding())
|
||||
module_re = re.compile(r"\[module\] (.*)\,")
|
||||
lines = out.split("\n")
|
||||
for line in lines:
|
||||
|
@ -48,7 +48,7 @@ def help(ous):
|
|||
out = subprocess.Popen([z3_exe, "-pmmd:%s" % module],stdout=subprocess.PIPE).communicate()[0]
|
||||
if out == None:
|
||||
continue
|
||||
out = out.decode(sys.stdout.encoding)
|
||||
out = out.decode(sys.getdefaultencoding())
|
||||
out = out.replace("\r","")
|
||||
ous.write(out)
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ def extract_params(ous, tac):
|
|||
out = subprocess.Popen([z3_exe, f"-tacticsmd:{tac}"], stdout=subprocess.PIPE).communicate()[0]
|
||||
if not out:
|
||||
return
|
||||
out = out.decode(sys.stdout.encoding)
|
||||
out = out.decode(sys.getdefaultencoding())
|
||||
if is_ws(out):
|
||||
return
|
||||
ous.write("### Parameters\n\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue