Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2022-12-04 02:41:11 +0300
committerPhilipp Hörist <philipp@hoerist.com>2022-12-04 02:41:11 +0300
commit3d5363d060ddb5fbf9814e9bed4800f0dfee8a7e (patch)
tree69f5c576b982ed5ee477d71e53bd95dbff587a29 /scripts/update_translations.py
parent2bbcd18bbe9609d8155c5988076aa4004b69e6cb (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-xscripts/update_translations.py2
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"'