The normal default pretty printer is not great when objects are nested and it can get hard to read the diff. Instead, provide a pretty printer that behaves more like when json get indented, which allows for smaller, more meaningful differences, at the expense of a slightly longer diff. This does not touch the other places where the pretty printer is used, and only updated the full diff one.
5 lines
415 B
ReStructuredText
5 lines
415 B
ReStructuredText
Improved the very verbose diff for every standard library container types: the indentation is now consistent and the markers are on their own separate lines, which should reduce the diffs shown to users.
|
|
|
|
Previously, the default python pretty printer was used to generate the output, which puts opening and closing
|
|
markers on the same line as the first/last entry, in addition to not having consistent indentation.
|