Changeset 197
- Timestamp:
- 06/30/06 04:10:36 (7 years ago)
- Location:
- pyyaml/trunk
- Files:
-
- 2 added
- 1 edited
-
lib/yaml/emitter.py (modified) (1 diff)
-
tests/data/invalid-single-quote-bug.code (added)
-
tests/data/invalid-single-quote-bug.data (added)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/lib/yaml/emitter.py
r153 r197 923 923 self.stream.write(data) 924 924 start = end 925 if ch == u'\'':926 data = u'\'\''927 self.column += 2928 if self.encoding:929 data = data.encode(self.encoding)930 self.stream.write(data)931 start = end + 1925 if ch == u'\'': 926 data = u'\'\'' 927 self.column += 2 928 if self.encoding: 929 data = data.encode(self.encoding) 930 self.stream.write(data) 931 start = end + 1 932 932 if ch is not None: 933 933 spaces = (ch == u' ')
Note: See TracChangeset
for help on using the changeset viewer.
