1
class MultiParent(object):
7
def from_lines(text, parents=()):
9
diff.hunks.append(NewText(text))
13
def from_texts(cls, text, parents=()):
14
return cls.from_lines(text.splitlines(True),
15
[p.splitlines(True) for p in parents])
18
class NewText(object):
20
def __init__(self, lines):
23
def __eq__(self, other):
24
if self.__class__ is not other.__class__:
26
return (other.lines == self.lines)