aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/re_replace.py
diff options
context:
space:
mode:
authordimdim11 <dimdim11@yandex-team.com>2024-07-11 11:45:03 +0300
committerdimdim11 <dimdim11@yandex-team.com>2024-07-11 12:04:42 +0300
commitb9f9cd42cc71d5fbb6c975a9fe34131988547b78 (patch)
tree61895383123bcbe21ef7083cada0b4349e660a46 /build/scripts/re_replace.py
parent66b30f907e96ccd115b74d064d46c84e038b36fe (diff)
downloadydb-b9f9cd42cc71d5fbb6c975a9fe34131988547b78.tar.gz
Fix generators py-scripts to use UTF-8
Fix generators py-scripts to use UTF-8 fdb604a98b1deb6c0f03822b584b1cc0ec5e6b2a
Diffstat (limited to 'build/scripts/re_replace.py')
-rw-r--r--build/scripts/re_replace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/scripts/re_replace.py b/build/scripts/re_replace.py
index b21c744df7..3a882c41d2 100644
--- a/build/scripts/re_replace.py
+++ b/build/scripts/re_replace.py
@@ -23,7 +23,7 @@ def main(args: List[str]):
skipped_files = []
for file in files:
patched = False
- with open(file, 'r') as f:
+ with open(file, 'rt', encoding="utf-8") as f:
lines = f.readlines()
for i in range(len(lines)):
line = lines[i]
@@ -32,7 +32,7 @@ def main(args: List[str]):
patched = True
lines[i] = patched_line
if patched:
- with open(file, 'w') as f:
+ with open(file, 'wt', encoding="utf-8") as f:
f.writelines(lines)
patched_files.append(file)
else: