From 95663f643497cbad8c24df82f5980b697e79158e Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 11 Jul 2024 15:05:46 +0200 Subject: [PATCH] Tools: fixed deprecated regex syntax in crowdin tool --- src/Tools/updatecrowdin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tools/updatecrowdin.py b/src/Tools/updatecrowdin.py index 2366746bf2..0f7de5f4ef 100755 --- a/src/Tools/updatecrowdin.py +++ b/src/Tools/updatecrowdin.py @@ -376,7 +376,7 @@ def updateqrc(qrcpath, lncode): # inserting new entry just after the last one line = resources[pos] if ".qm" in line: - line = re.sub("_.*\.qm", "_" + lncode + ".qm", line) + line = re.sub(r"_.*\.qm", "_" + lncode + ".qm", line) else: modname = os.path.splitext(os.path.basename(qrcpath))[0] line = " translations/" + modname + "_" + lncode + ".qm\n"