Changeset 355 for pyyaml/trunk/lib3/yaml
- Timestamp:
- 08/29/09 18:28:45 (3 years ago)
- Files:
-
- 1 modified
-
pyyaml/trunk/lib3/yaml/emitter.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/lib3/yaml/emitter.py
r351 r355 580 580 handle = None 581 581 suffix = tag 582 for prefix in self.tag_prefixes: 582 prefixes = self.tag_prefixes.keys() 583 prefixes.sort() 584 for prefix in prefixes: 583 585 if tag.startswith(prefix) \ 584 586 and (prefix == '!' or len(prefix) < len(tag)): … … 1024 1026 if ch is None or ch in ' \n\x85\u2028\u2029': 1025 1027 data = text[start:end] 1028 self.column += len(data) 1026 1029 if self.encoding: 1027 1030 data = data.encode(self.encoding)
