Commit 424f49fd authored by De Boissieu Florian's avatar De Boissieu Florian

python3: open file with encoding="utf-8" (as previous commit)

parent 65475f0c
......@@ -6999,11 +6999,11 @@ def makeFile(outFileName):
reply = input(
'File %s exists. Overwrite? (y/n): ' % outFileName)
if reply == 'y':
outFile = open(outFileName, 'w', encode="utf-8")
outFile = open(outFileName, 'w', encoding="utf-8")
else:
sys.exit('Exiting. No output file.')
else:
outFile = open(outFileName, 'w', encode="utf-8")
outFile = open(outFileName, 'w', encoding="utf-8")
return outFile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment