1. Jannis Leidel
  2. polib-fixes

Commits

izimobil  committed 73ae6ea

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

  • Participants
  • Parent commits e5224c5
  • Branches default

Comments (0)

Files changed (1)

File polib.py

View file
  • Ignore whitespace
         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