Commits

Anonymous committed 73ae6ea

fixed issue #0006 (thanks maxfnoel for the patch !)

Comments (0)

Files changed (1)

         if self.msgstr_plural:
             # write the msgstr_plural if any
             msgstrs = self.msgstr_plural
-            keys = msgstrs.keys()
-            list(keys).sort()
+            keys = list(msgstrs)
+            keys.sort()
             for index in keys:
                 msgstr = msgstrs[index]
                 plural_index = '[%s]' % index