Home | History | Annotate | Download | only in python2.7

Lines Matching refs:diff

10     For two lists of strings, return a delta in context diff format.
19 For two lists of strings, return a delta in unified diff format.
60 SequenceMatcher tries to compute a "human-friendly diff" between two
61 sequences. Unlike e.g. UNIX(tm) diff, the fundamental notion is the
66 reports than does diff. This method appears to be the least vulnerable
399 # stripped, it's "a" (tied with "b"). UNIX(tm) diff does so
403 # Windiff ends up at the same place as diff, but by pairing up
568 # out a diff to change a[i:ai] into b[j:bj], pump out
784 Note that Differ makes no claim to produce a *minimal* diff. To the
788 locality, at the occasional cost of producing a longer diff.
1144 ### Unified Diff
1149 # Per the diff spec at http://www.unix.org/single_unix_specification/
1161 Compare two sequences of lines; generate the delta as a unified diff.
1167 By default, the diff control lines (those with ---, +++, or @@) are
1227 ### Context Diff
1232 # Per the diff spec at http://www.unix.org/single_unix_specification/
1245 Compare two sequences of lines; generate the delta as a context diff.
1251 By default, the diff control lines (those with *** or ---) are
1260 The context diff format normally has a header for filenames and
1337 >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(1),
1339 >>> print ''.join(diff),
1637 table.diff {font-family:Courier; border:medium;}
1646 <table class="diff" id="difflib_chg_%(prefix)s_top"
1656 <table class="diff" summary="Legends">
1685 See tools/scripts/diff.py for an example usage of this class.
2032 >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(1),
2034 >>> diff = list(diff)
2035 >>> print ''.join(restore(diff, 1)),
2039 >>> print ''.join(restore(diff