summaryrefslogtreecommitdiffstats
path: root/gen_web_gettext.py
diff options
context:
space:
mode:
authorbendikro <bro.devel@gmail.com>2016-10-31 19:54:10 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2016-11-03 10:31:38 +0000
commit59d8fc9a14ca5aa82bc53c498036ea069cb127a1 (patch)
treee49f8acc106bfe7f5220c5e832d7ce6c5f67f598 /gen_web_gettext.py
parenta438f13647bfe6ee9a2d2ceec243b5f4b11dfd06 (diff)
downloaddeluge-59d8fc9a14ca5aa82bc53c498036ea069cb127a1.tar.gz
deluge-59d8fc9a14ca5aa82bc53c498036ea069cb127a1.tar.bz2
deluge-59d8fc9a14ca5aa82bc53c498036ea069cb127a1.zip
[Lint] Fix pylint warnings
Diffstat (limited to 'gen_web_gettext.py')
-rwxr-xr-xgen_web_gettext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gen_web_gettext.py b/gen_web_gettext.py
index 519edf7bd..69dd91d8e 100755
--- a/gen_web_gettext.py
+++ b/gen_web_gettext.py
@@ -89,7 +89,7 @@ def create_gettext_js(js_dir):
gettext_file = os.path.join(os.path.dirname(js_dir), 'gettext.js')
with open(gettext_file, 'w') as fp:
fp.write(gettext_tpl)
- for key in sorted(strings.keys()):
+ for key in sorted(strings):
if DEBUG:
fp.write('\n// %s\n' % ', '.join(['%s:%s' % x for x in strings[key]]))
fp.write('''GetText.add('%(key)s','${escape(_("%(key)s"))}')\n''' % locals())