Skip to content

Commit

Permalink
remove \r from output
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Aug 16, 2022
1 parent 9d6de2f commit fe00e95
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions doc/parameterhelp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@

Z3_EXE = "z3.exe"

def help():
print("Z3 Options Enabled")
def help(ous):

ous.write("Z3 Options\n")
out = subprocess.Popen([Z3_EXE, "-pm"],stdout=subprocess.PIPE).communicate()[0]
modules = []
if out != None:
Expand All @@ -22,6 +23,8 @@ def help():
if out == None:
continue
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)

0 comments on commit fe00e95

Please sign in to comment.