Skip to content

Commit

Permalink
force output to be in utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
pmendes committed Aug 8, 2024
1 parent 6e675b2 commit 81e516e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/model_report.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding:UTF-8 -*-
#
# model_report.py
# produce a report file of SBML or COPASI model
Expand Down Expand Up @@ -39,7 +40,7 @@

# open report file
try:
outf = open(report, "w")
outf = open(report, "w", encoding='utf-8')
except:
print(f'ERROR: cannot create file {report}')
exit(2)
Expand Down

0 comments on commit 81e516e

Please sign in to comment.