mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix not using encoding="utf-8" when writing to files or reading from them
Co-authored-by: ChristopheClaustre <christophe.claustre.31@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@ def parse_template(inherits, source, delimiter):
|
||||
meta_prefix = delimiter + " meta-"
|
||||
meta = ["name", "description", "version", "space-indent"]
|
||||
|
||||
with open(source) as f:
|
||||
with open(source, "r", encoding="utf-8") as f:
|
||||
lines = f.readlines()
|
||||
for line in lines:
|
||||
if line.startswith(meta_prefix):
|
||||
|
||||
Reference in New Issue
Block a user