mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
remove \r from output
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9d6de2f873
commit
fe00e95f72
|
@ -5,8 +5,9 @@ import re
|
||||||
|
|
||||||
Z3_EXE = "z3.exe"
|
Z3_EXE = "z3.exe"
|
||||||
|
|
||||||
def help():
|
def help(ous):
|
||||||
print("Z3 Options Enabled")
|
|
||||||
|
ous.write("Z3 Options\n")
|
||||||
out = subprocess.Popen([Z3_EXE, "-pm"],stdout=subprocess.PIPE).communicate()[0]
|
out = subprocess.Popen([Z3_EXE, "-pm"],stdout=subprocess.PIPE).communicate()[0]
|
||||||
modules = []
|
modules = []
|
||||||
if out != None:
|
if out != None:
|
||||||
|
@ -22,6 +23,8 @@ def help():
|
||||||
if out == None:
|
if out == None:
|
||||||
continue
|
continue
|
||||||
out = out.decode(sys.stdout.encoding)
|
out = out.decode(sys.stdout.encoding)
|
||||||
print(out)
|
out = out.replace("\r","")
|
||||||
|
ous.write(out)
|
||||||
|
|
||||||
help()
|
with open("Parameters.md",'w') as ous:
|
||||||
|
help(ous)
|
||||||
|
|
Loading…
Reference in a new issue