Trent Mick <tre...@gmail.com> added the comment:

Here is a new patch that also fixes the same issue in
difflib.context_diff() and adds a couple test cases.

----------
stage: test needed -> patch review
title: naive use of ''.join(difflib.unified_diff(...)) results in bogus diffs 
with inputs that don't end with end-of-line char -> naive use of 
''.join(difflib.unified_diff(...)) results in bogus diffs with inputs that 
don't end with end-of-line char (same with context_diff)
Added file: http://bugs.python.org/file14082/python_difflib_no_eol.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue2142>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to