You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try diffing two YAML files - in the second one, I've removed a single item from the list. Ideally I would like to see this as a remove diff. Instead I get:
So basically it thinks I've changed "one" to "two", "two" to "three", and then removed "three".
It works if I remove an item from the end of a list, but I can't guarantee that this will be the case. I'm using ruamel.yaml to load the dicts from YAML
Test code:
fromdictdifferimportdiffasdictdifffromruamelimportyamlfirst="""targ1: - one - two - three"""second="""targ1: - two - three"""first_d=yaml.load(first, Loader=yaml.Loader)
second_d=yaml.load(second, Loader=yaml.Loader)
res=dictdiff(first_d, second_d)
diffs=list(res)
print(diffs)
The text was updated successfully, but these errors were encountered:
Package version (if known): 0.8.1
I try diffing two YAML files - in the second one, I've removed a single item from the list. Ideally I would like to see this as a
remove
diff. Instead I get:So basically it thinks I've changed "one" to "two", "two" to "three", and then removed "three".
It works if I remove an item from the end of a list, but I can't guarantee that this will be the case. I'm using ruamel.yaml to load the dicts from YAML
Test code:
The text was updated successfully, but these errors were encountered: