[issue2142] difflib.unified_diff(...) produces invalid patches

Mark Dickinson report at bugs.python.org
Fri May 14 23:08:49 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

Marking as a feature request:  I think this is somewhere on the line between bugfix and new feature, but either way 2.7 is too close to release to start messing with something that isn't really all that broken.

For 2.7 (and 2.6, 3.1), there's also the option of updating the documentation to point out this issue.  It would also be worth updating the command-line-interface example in the docs to do this post-processing (i.e., for each line that doesn't end in a newline, add '\n\ No newline at end of file') before calling writelines.

----------
type: behavior -> feature request
versions:  -Python 2.6, Python 2.7, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2142>
_______________________________________


More information about the Python-bugs-list mailing list