summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorhbina085 <hanif.ariffin.4326@gmail.com>2019-06-29 05:31:42 -0400
committerhbina085 <hanif.ariffin.4326@gmail.com>2019-06-29 05:31:42 -0400
commitfd39e9412156f3a12816c130ce8ddbd37834e529 (patch)
tree1065b3e3dbd8ec5ae0915a414401c429dc87437f /editor
parent9adc158097b5bfdb14fbd283918183e19bd2b133 (diff)
Pylint warning for extract.py
pylint is complaining that an "Anomalous backslash in string: '\-'" The string constant might be missing an 'r' prefix.
Diffstat (limited to 'editor')
-rwxr-xr-xeditor/translations/extract.py4
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)))