techtonik / python-patch

Library to parse and apply unified diffs
https://pypi.python.org/pypi/patch
106 stars 63 forks source link

xstrip function does not a filename, causing various troubles and exceptions (patch attached) #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
@ r158 , xstrip does not return a file, resulting in anything that relies on 
the Path.target to be a string to fail (such as diffstat)

I have attached a patch (of course) with a test and a fix.

Thanks for this great tool!

Original issue reported on code.google.com by pombreda...@nexb.com on 21 Aug 2012 at 7:08

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r166.

Original comment by techtonik@gmail.com on 22 Nov 2012 at 5:33

GoogleCodeExporter commented 9 years ago
Epic fail. Thanks. =)

Original comment by techtonik@gmail.com on 22 Nov 2012 at 5:34