diff options
author | bendikro <bro.devel@gmail.com> | 2016-10-31 19:54:10 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2016-11-03 11:31:38 +0100 |
commit | 59d8fc9a14ca5aa82bc53c498036ea069cb127a1 (patch) | |
tree | e49f8acc106bfe7f5220c5e832d7ce6c5f67f598 /gen_web_gettext.py | |
parent | Rename classic to standalone (diff) | |
download | deluge-59d8fc9a14ca5aa82bc53c498036ea069cb127a1.tar.xz deluge-59d8fc9a14ca5aa82bc53c498036ea069cb127a1.zip |
[Lint] Fix pylint warnings
Diffstat (limited to 'gen_web_gettext.py')
-rwxr-xr-x | gen_web_gettext.py | 2 |
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()) |