diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2014-09-03 22:28:28 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2014-09-03 23:48:34 +0100 |
commit | 5167e93d12cb9f3c43ab2cecdac3961dac6b0fb2 (patch) | |
tree | 92c4504c3943999836edeeaee2b52af3f04dd6c4 /generate_pot.py | |
parent | 5d88504c34bab3d00c338ad7f5da7048beba9223 (diff) | |
download | deluge-5167e93d12cb9f3c43ab2cecdac3961dac6b0fb2.tar.gz deluge-5167e93d12cb9f3c43ab2cecdac3961dac6b0fb2.tar.bz2 deluge-5167e93d12cb9f3c43ab2cecdac3961dac6b0fb2.zip |
Flake8 core and common files
* Added N802 to flake8 ignore as certain inherited funcs cannot be changed
to lowercase and this unresolved warning hides other errors/warnings.
* Include new header
Diffstat (limited to 'generate_pot.py')
-rwxr-xr-x | generate_pot.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generate_pot.py b/generate_pot.py index 22b76257e..721913fe3 100755 --- a/generate_pot.py +++ b/generate_pot.py @@ -4,7 +4,6 @@ # import os import re -import sys from version import get_version from subprocess import call from datetime import datetime @@ -16,7 +15,7 @@ EXCLUSIONS = [ "deluge/tests", ] webui_js_dir = "deluge/ui/web/js/deluge-all" -infiles_list= "infiles.list" +infiles_list = "infiles.list" pot_filepath = os.path.join("deluge", "i18n", "deluge.pot") re_exc_plugin_build = re.compile("deluge\/plugins\/.*\/build") @@ -55,7 +54,7 @@ with open(infiles_list, "wb") as f: call(xgettext_cmd) # find javascript files -js_to_translate=[] +js_to_translate = [] for (dirpath, dirnames, filenames) in os.walk(webui_js_dir): for filename in filenames: if os.path.splitext(filename)[1] == ".js": |