[issue11632] difflib.unified_diff loses context

Steve Newcomb report at bugs.python.org
Tue Oct 18 11:23:47 EDT 2016


Steve Newcomb added the comment:

Context reporting is still buggy in Python 3.5.2:

>>> [ x for x in difflib.unified_diff( "'on'\n", "'on'\n\n\n")]
['--- \n', '+++ \n', '@@ -3,3 +3,5 @@\n', ' n', " '", ' \n', '+\n', '+\n']
>>> import sys
>>> sys.version
'3.5.2 (default, Sep 10 2016, 08:21:44) \n[GCC 5.4.0 20160609]'
>>> 
(compiled under Ubuntu 16.04.1 LTS)

----------
nosy: +steve.newcomb

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


More information about the Python-bugs-list mailing list