Parse the first YAML document in a stream and produce the corresponding representation tree.
(stream, Loader=Loader)
| 40 | loader.dispose() |
| 41 | |
| 42 | def compose(stream, Loader=Loader): |
| 43 | """ |
| 44 | Parse the first YAML document in a stream |
| 45 | and produce the corresponding representation tree. |
| 46 | """ |
| 47 | loader = Loader(stream) |
| 48 | try: |
| 49 | return loader.get_single_node() |
| 50 | finally: |
| 51 | loader.dispose() |
| 52 | |
| 53 | def compose_all(stream, Loader=Loader): |
| 54 | """ |
nothing calls this directly
no test coverage detected