diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-08-13 12:25:39 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-08-13 12:25:39 +0200 |
commit | 56a22f859d4fa1a0be6a6335fb7e9232ea9e9239 (patch) | |
tree | f6cf09417fc8b65877d9c3b04325190404d3bce3 /_test/roundtrip.py | |
parent | d27c1ffe8156ee462cd7f6b0e812c4f84d0b02d6 (diff) | |
download | ruamel.yaml-56a22f859d4fa1a0be6a6335fb7e9232ea9e9239.tar.gz |
fix lists within lists with comments
had to keep emit the comment and mark it for having been emitted, then reset on next run (as with maps)
Diffstat (limited to '_test/roundtrip.py')
-rw-r--r-- | _test/roundtrip.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/_test/roundtrip.py b/_test/roundtrip.py index 9774fc4..a00c4d4 100644 --- a/_test/roundtrip.py +++ b/_test/roundtrip.py @@ -44,9 +44,10 @@ def round_trip_load_all(inp, preserve_quotes=None, version=None): ) -def round_trip_dump(data, indent=None, block_seq_indent=None, top_level_colon_align=None, +def round_trip_dump(data, stream=None, + indent=None, block_seq_indent=None, top_level_colon_align=None, prefix_colon=None, explicit_start=None, explicit_end=None, version=None): - return ruamel.yaml.round_trip_dump(data, + return ruamel.yaml.round_trip_dump(data, stream=stream, indent=indent, block_seq_indent=block_seq_indent, top_level_colon_align=top_level_colon_align, prefix_colon=prefix_colon, |