Parse the first YAML document in a stream and produce the corresponding Python object.
(stream, Loader=Loader)
| 63 | loader.dispose() |
| 64 | |
| 65 | def load(stream, Loader=Loader): |
| 66 | """ |
| 67 | Parse the first YAML document in a stream |
| 68 | and produce the corresponding Python object. |
| 69 | """ |
| 70 | loader = Loader(stream) |
| 71 | try: |
| 72 | return loader.get_single_data() |
| 73 | finally: |
| 74 | loader.dispose() |
| 75 | |
| 76 | def load_all(stream, Loader=Loader): |
| 77 | """ |
no test coverage detected