Fix setting diff types and avoid generating stats for binary diffs.
Review Request #11771 — Created Aug. 3, 2021 and submitted — Latest diff uploaded
When setting a file as binary using the DOM, writing it out would fail,
due to the wrong parameter being passed toDiffXWriter.write_diff()
.
This needed to bediff_type=
, but it was being passed astype=
. We
now use the option remapping support inDiffXDOMWriter
to pass the
correct argument.Statistics were also being generated for binary diffs, which didn't make
any sense. We now skip generating stats for these.
Unit tests pass on Python 2 and 3.
Verified this fix in production.