Changeset 191
- Timestamp:
- 06/18/06 14:04:15 (7 years ago)
- File:
-
- 1 edited
-
pyyaml/trunk/lib/yaml/scanner.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/lib/yaml/scanner.py
r188 r191 1306 1306 if ch in u'\0 \t\r\n\x85\u2028\u2029' \ 1307 1307 or (not self.flow_level and ch == u':' and 1308 self.peek(length+1) in u'\0 \t\r\n\x 28\u2028\u2029') \1308 self.peek(length+1) in u'\0 \t\r\n\x85\u2028\u2029') \ 1309 1309 or (self.flow_level and ch in u',:?[]{}'): 1310 1310 break … … 1312 1312 # It's not clear what we should do with ':' in the flow context. 1313 1313 if (self.flow_level and ch == u':' 1314 and self.peek(length+1) not in u'\0 \t\r\n\x 28\u2028\u2029,[]{}'):1314 and self.peek(length+1) not in u'\0 \t\r\n\x85\u2028\u2029,[]{}'): 1315 1315 self.forward(length) 1316 1316 raise ScannerError("while scanning a plain scalar", start_mark,
Note: See TracChangeset
for help on using the changeset viewer.
