summaryrefslogtreecommitdiffstats
path: root/gen_web_gettext.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2016-10-26 19:14:10 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2016-10-26 19:14:10 +0100
commit3f72905b3fb66549e572df9acaeb27cf0d93fe05 (patch)
tree83e2ea501256392a95e3148de5a03018037e7f62 /gen_web_gettext.py
parentc4282f29abbd1812c5d91343561886129751390c (diff)
downloaddeluge-3f72905b3fb66549e572df9acaeb27cf0d93fe05.tar.gz
deluge-3f72905b3fb66549e572df9acaeb27cf0d93fe05.tar.bz2
deluge-3f72905b3fb66549e572df9acaeb27cf0d93fe05.zip
Revert "[Py2to3] Clean-up the use of keys() on dictionary objects."
This reverts commit 8b50f3cdbdec4f2fa622aca9d0e4b45e5e4bf3aa.
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 69dd91d8e..519edf7bd 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):
+ for key in sorted(strings.keys()):
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())