[issue2142] difflib.unified_diff(...) produces invalid patches
Ray.Allen
report at bugs.python.org
Tue Mar 15 06:55:07 CET 2011
Ray.Allen <ysj.ray at gmail.com> added the comment:
Yes there may be.
Here is the updated patch:
Add a new keyword argument to context_diff() and unified_diff() named "warn_no_newline_at_end". If true, emit "\ No newline etc". It defaults to True, set it to false to get the old behavior. I'm not sure if this name is too long, but I haven't got a better name.
----------
Added file: http://bugs.python.org/file21207/issue_2142_2.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2142>
_______________________________________
More information about the Python-bugs-list
mailing list