line.strip('\r\n') contains '\r'. by rhinoceros · Pull Request #62 · techtonik/python-patch
Can you describe the problem that your patch is fixing?
when I parse svn diff , I meet the case: there were a lot of '\r' in line,
and hunkactual["linestgt"] will always less than hunk.linestgt . hunk parse failed.
@rhinoceros tests on Python 3 don't pass with this commit, so it is unlikely to be merged. Can you provide the diff file and describe how did it? If it came from public repo, that would be the best.
This file contains hidden or 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