diff options
author | Philipp Hörist <philipp@hoerist.com> | 2022-12-04 02:41:11 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2022-12-04 02:41:11 +0300 |
commit | 3d5363d060ddb5fbf9814e9bed4800f0dfee8a7e (patch) | |
tree | 69f5c576b982ed5ee477d71e53bd95dbff587a29 /scripts/update_translations.py | |
parent | 2bbcd18bbe9609d8155c5988076aa4004b69e6cb (diff) |
refactor: Scripts: Fix various issues
- Use logging module everywhere
- Fix boolean traps
- replace exit() with sys.exit()
Diffstat (limited to 'scripts/update_translations.py')
-rwxr-xr-x | scripts/update_translations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/update_translations.py b/scripts/update_translations.py index 3f867a315..c5e66ac46 100755 --- a/scripts/update_translations.py +++ b/scripts/update_translations.py @@ -23,7 +23,7 @@ TRANSLATABLE_FILES = [ def template_is_equal(old_template_path: Path, new_template: str) -> bool: - with open(old_template_path, 'r', encoding='utf8') as f: + with open(old_template_path, encoding='utf8') as f: old_template = f.read() pattern = r'"POT-Creation-Date: .*\n"' |