[New-bugs-announce] [issue8702] difflib: unified_diff produces wrong patches (again)

anatoly techtonik report at bugs.python.org
Thu May 13 10:05:26 CEST 2010


New submission from anatoly techtonik <techtonik at gmail.com>:

If source/target file for unified format diff context doesn't end with new line, the diff should contain this marker:

\ No newline at end of file

Or else there is information loss when such patch is applied.

http://en.wikipedia.org/wiki/Diff#Unified_format

----------
components: Library (Lib)
messages: 105630
nosy: techtonik
priority: normal
severity: normal
status: open
title: difflib: unified_diff produces wrong patches (again)
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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


More information about the New-bugs-announce mailing list