diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-06-29 18:15:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-29 18:15:46 +0200 |
commit | 5cf51cc7e4457c5c9f4b51ab99d6f5ed9eaf5e78 (patch) | |
tree | d3e4d12a1b9d2b432cfa16d8f96f76d69a77fc9a | |
parent | 4ca22d81d71afb87500f9dbdc56791365f656b7a (diff) | |
parent | fd39e9412156f3a12816c130ce8ddbd37834e529 (diff) |
Merge pull request #30182 from hbina/pylint_anomalous_backlash
"Anomalous backslash in string: '-'" in extract.py
-rwxr-xr-x | editor/translations/extract.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/translations/extract.py b/editor/translations/extract.py index 70eb15da62..07b34f7562 100755 --- a/editor/translations/extract.py +++ b/editor/translations/extract.py @@ -116,7 +116,7 @@ shutil.move("editor.pot", "editor/translations/editor.pot") # TODO: Make that in a portable way, if we care; if not, kudos to Unix users if (os.name == "posix"): - added = subprocess.check_output("git diff editor/translations/editor.pot | grep \+msgid | wc -l", shell=True) - removed = subprocess.check_output("git diff editor/translations/editor.pot | grep \\\-msgid | wc -l", shell=True) + added = subprocess.check_output(r"git diff editor/translations/editor.pot | grep \+msgid | wc -l", shell=True) + removed = subprocess.check_output(r"git diff editor/translations/editor.pot | grep \\\-msgid | wc -l", shell=True) print("\n# Template changes compared to the staged status:") print("# Additions: %s msgids.\n# Deletions: %s msgids." % (int(added), int(removed))) |