diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2016-10-26 20:14:10 +0200 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2016-10-26 20:14:10 +0200 |
commit | 3f72905b3fb66549e572df9acaeb27cf0d93fe05 (patch) | |
tree | 83e2ea501256392a95e3148de5a03018037e7f62 /gen_web_gettext.py | |
parent | [GtkUI] Refactor out duplicate code in piecesbar draw pieces (diff) | |
download | deluge-3f72905b3fb66549e572df9acaeb27cf0d93fe05.tar.xz 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-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 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()) |