Skip to content

Commit 8bd92dc

Browse files
authored
Merge pull request andreikop#16 from danerlt/master
fix write file encode error
2 parents 041ffe8 + 5a5b4fd commit 8bd92dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp2python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def process_file(in_filename, out_filename):
287287
"""
288288
with open(in_filename, 'r', encoding='utf-8') as file:
289289
lines = file.readlines() # probably would die on sources more than 100 000 lines :D
290-
with open(out_filename, 'w+') as file:
290+
with open(out_filename, 'w+', encoding='utf-8') as file:
291291
for line in lines:
292292
file.write(process_line(line))
293293

0 commit comments

Comments
 (0)