Changeset 345


Ignore:
Timestamp:
02/23/09 14:17:29 (5 years ago)
Author:
xi
Message:

Added a workaround against #116 (Thanks Andrey Somov).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib/yaml/emitter.py

    r333 r345  
    582582        handle = None 
    583583        suffix = tag 
    584         for prefix in self.tag_prefixes: 
     584        prefixes = self.tag_prefixes.keys() 
     585        prefixes.sort() 
     586        for prefix in prefixes: 
    585587            if tag.startswith(prefix)   \ 
    586588                    and (prefix == u'!' or len(prefix) < len(tag)): 
Note: See TracChangeset for help on using the changeset viewer.