-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework the PrettyPrinter implementation for full diffs
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.
- Loading branch information
1 parent
0e3bf7b
commit 2ac6392
Showing
8 changed files
with
647 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Improved the very verbose diff for every standard library container types. Previously, | ||
this would use the default python pretty printer, which puts opening and closing | ||
markers on the same line as the first/last entry, in addition to not having | ||
consistent indentation. | ||
|
||
The indentation is now consistent and the markers on their own separate lines | ||
which should reduce the diffs shown to users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.