conan-io / python-patch-ng

Library to parse and apply unified diffs
https://pypi.org/project/patch-ng
Other
19 stars 8 forks source link

Fix PatchSet.dump #17

Closed madebr closed 11 months ago

madebr commented 4 years ago

PatchSet.dump requires all variables to be byte objects.

Fix this + add a simple test.

Note that I choose a simple patch file to compare in the test, because the patch does not save comments on the patch lines starting with ---, +++ and @@.

xloem commented 1 year ago

Will this work in python 2? (I used tostr locally, unsure of this. Regardless, python 2 is EOL). It seems the past maintainers have left and something new may be needed.