(out, key, comment, indent)
| 273 | |
| 274 | |
| 275 | def _set_ruamel_comment(out, key, comment, indent): |
| 276 | # ruamel quirk: on a CommentedSeq the end of line comment must be set before the before comment |
| 277 | if comment.get("eol"): |
| 278 | _add_eol_comment(out, key, comment["eol"]) |
| 279 | if comment.get("before"): |
| 280 | out.yaml_set_comment_before_after_key(key, before="\n".join(comment["before"]), indent=indent) |
| 281 | |
| 282 | |
| 283 | def commented_tree(obj, plain, column=0, _seen=None): |
no test coverage detected