diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-24 11:14:10 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-24 11:14:10 +0200 |
commit | f9c51183bb1d285f95a5c7c6ee61caa89d926ffd (patch) | |
tree | 802d9610d594ba6bf292b0b7be29eec8448fbd11 /methods.py | |
parent | bf20231140da1f52c15807f46c4b0c6ef1da0d60 (diff) | |
parent | 0c6dbbd050866054b6758223871cf65497461364 (diff) | |
download | redot-engine-f9c51183bb1d285f95a5c7c6ee61caa89d926ffd.tar.gz |
Merge pull request #93342 from kus04e4ek/build-fix
Fix not using `encoding="utf-8"` when writing to files or reading from them
Diffstat (limited to 'methods.py')
-rw-r--r-- | methods.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/methods.py b/methods.py index f3798d121a..99c47ca077 100644 --- a/methods.py +++ b/methods.py @@ -347,7 +347,7 @@ def detect_modules(search_path, recursive=False): # Godot sources when using `custom_modules` build option. version_path = os.path.join(path, "version.py") if os.path.exists(version_path): - with open(version_path) as f: + with open(version_path, "r", encoding="utf-8") as f: if 'short_name = "godot"' in f.read(): return True return False @@ -989,7 +989,7 @@ def show_progress(env): pass try: - with open(node_count_fname) as f: + with open(node_count_fname, "r", encoding="utf-8") as f: node_count_max = int(f.readline()) except Exception: pass |