Home | History | Annotate | Download | only in Lib

Lines Matching defs:Differ

22 Class Differ:
30 'Differ','IS_CHARACTER_JUNK', 'IS_LINE_JUNK', 'context_diff',
107 See the Differ class for a fancy human-friendly file differencer, which
764 class Differ:
766 Differ is a class for comparing sequences of lines of text, and
767 producing human-readable differences or deltas. Differ uses
771 Each line of a Differ delta begins with a two-letter code:
782 Note that Differ makes no claim to produce a *minimal* diff. To the
809 Next we instantiate a Differ object:
811 >>> d = Differ()
813 Note that when instantiating a Differ object we may pass functions to
814 filter out line and character 'junk'. See Differ.__init__ for details.
894 >>> print ''.join(Differ().compare('one\ntwo\nthree\n'.splitlines(1),
952 >>> d = Differ()
1060 >>> d = Differ()
1316 Compare `a` and `b` (lists of strings); return a `Differ`-style delta.
1348 return Differ(linejunk, charjunk).compare(a, b)
2024 Given a `delta` produced by `Differ.compare()` or `ndiff()`, extract