| 1 | import yaml |
|---|
| 2 | |
|---|
| 3 | print yaml.load(open("pyyaml_242.yaml", "r")) |
|---|
| 4 | |
|---|
| 5 | """ |
|---|
| 6 | Traceback (most recent call last): |
|---|
| 7 | File "pyyaml.py", line 3, in <module> |
|---|
| 8 | yaml.load(open("pyyaml.yaml", "r")) |
|---|
| 9 | File "C:\Python26\lib\site-packages\yaml\__init__.py", line 58, in load |
|---|
| 10 | return loader.get_single_data() |
|---|
| 11 | File "C:\Python26\lib\site-packages\yaml\constructor.py", line 42, in get_single_data |
|---|
| 12 | node = self.get_single_node() |
|---|
| 13 | File "C:\Python26\lib\site-packages\yaml\composer.py", line 36, in get_single_node |
|---|
| 14 | document = self.compose_document() |
|---|
| 15 | File "C:\Python26\lib\site-packages\yaml\composer.py", line 55, in compose_document |
|---|
| 16 | node = self.compose_node(None, None) |
|---|
| 17 | File "C:\Python26\lib\site-packages\yaml\composer.py", line 84, in compose_node |
|---|
| 18 | node = self.compose_mapping_node(anchor) |
|---|
| 19 | File "C:\Python26\lib\site-packages\yaml\composer.py", line 133, in compose_mapping_node |
|---|
| 20 | item_value = self.compose_node(node, item_key) |
|---|
| 21 | File "C:\Python26\lib\site-packages\yaml\composer.py", line 84, in compose_node |
|---|
| 22 | node = self.compose_mapping_node(anchor) |
|---|
| 23 | File "C:\Python26\lib\site-packages\yaml\composer.py", line 133, in compose_mapping_node |
|---|
| 24 | item_value = self.compose_node(node, item_key) |
|---|
| 25 | File "C:\Python26\lib\site-packages\yaml\composer.py", line 84, in compose_node |
|---|
| 26 | node = self.compose_mapping_node(anchor) |
|---|
| 27 | File "C:\Python26\lib\site-packages\yaml\composer.py", line 133, in compose_mapping_node |
|---|
| 28 | item_value = self.compose_node(node, item_key) |
|---|
| 29 | File "C:\Python26\lib\site-packages\yaml\composer.py", line 84, in compose_node |
|---|
| 30 | node = self.compose_mapping_node(anchor) |
|---|
| 31 | File "C:\Python26\lib\site-packages\yaml\composer.py", line 127, in compose_mapping_node |
|---|
| 32 | while not self.check_event(MappingEndEvent): |
|---|
| 33 | File "C:\Python26\lib\site-packages\yaml\parser.py", line 93, in check_event |
|---|
| 34 | self.current_event = self.state() |
|---|
| 35 | File "C:\Python26\lib\site-packages\yaml\parser.py", line 423, in parse_block_mapping_key |
|---|
| 36 | if self.check_token(KeyToken): |
|---|
| 37 | File "C:\Python26\lib\site-packages\yaml\scanner.py", line 115, in check_token |
|---|
| 38 | while self.need_more_tokens(): |
|---|
| 39 | File "C:\Python26\lib\site-packages\yaml\scanner.py", line 149, in need_more_tokens |
|---|
| 40 | self.stale_possible_simple_keys() |
|---|
| 41 | File "C:\Python26\lib\site-packages\yaml\scanner.py", line 289, in stale_possible_simple_keys |
|---|
| 42 | "could not found expected ':'", self.get_mark()) |
|---|
| 43 | yaml.scanner.ScannerError: while scanning a simple key |
|---|
| 44 | in "pyyaml.yaml", line 14, column 5 |
|---|
| 45 | could not found expected ':' |
|---|
| 46 | in "pyyaml.yaml", line 14, column 1097 |
|---|
| 47 | """ |
|---|