Changeset 149 for pyyaml/trunk/lib/yaml/scanner.py
- Timestamp:
- 04/23/06 09:40:57 (7 years ago)
- File:
-
- 1 edited
-
pyyaml/trunk/lib/yaml/scanner.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/lib/yaml/scanner.py
r138 r149 1302 1302 break 1303 1303 length += 1 1304 # It's not clear what we should do with ':' in the flow context. 1305 if (self.flow_level and ch == u':' 1306 and self.peek(length+1) not in u'\0 \t\r\n\x28\u2028\u2029,[]{}'): 1307 self.forward(length) 1308 raise ScannerError("while scanning a plain scalar", start_mark, 1309 "found unexpected ':'", self.get_mark(), 1310 "Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details.") 1304 1311 if length == 0: 1305 1312 break
Note: See TracChangeset
for help on using the changeset viewer.
