From dbc357ebcde9c6be2758db1bfa6de5a202c0b56a Mon Sep 17 00:00:00 2001 From: A_D Date: Sun, 3 Jan 2021 21:33:01 +0200 Subject: [PATCH] Dont overwrite template files when generating new ones --- l10n.py | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/l10n.py b/l10n.py index eca31792..5e285adc 100755 --- a/l10n.py +++ b/l10n.py @@ -11,7 +11,7 @@ import sys import warnings from collections import OrderedDict from contextlib import suppress -from os.path import basename, dirname, exists, isdir, isfile, join +from os.path import basename, dirname, isdir, isfile, join from sys import platform from typing import TYPE_CHECKING, Dict, Iterable, Optional, Set, TextIO, Union, cast @@ -357,7 +357,7 @@ if __name__ == "__main__": import re regexp = re.compile(r'''_\([ur]?(['"])(((?