Commits

Kirill Simonov committed 40ed8f6

Fixed sorting of dict.keys() generator.

  • Participants
  • Parent commits 431b4d2

Comments (0)

Files changed (1)

File lib3/yaml/emitter.py

             return tag
         handle = None
         suffix = tag
-        prefixes = self.tag_prefixes.keys()
-        prefixes.sort()
+        prefixes = sorted(self.tag_prefixes.keys())
         for prefix in prefixes:
             if tag.startswith(prefix)   \
                     and (prefix == '!' or len(prefix) < len(tag)):