283
279
class ParentText(object):
284
280
"""A reference to text present in a parent text"""
286
__slots__ = ['parent', 'parent_pos', 'child_pos', 'num_lines']
288
282
def __init__(self, parent, parent_pos, child_pos, num_lines):
290
284
self.parent_pos = parent_pos
291
285
self.child_pos = child_pos
292
286
self.num_lines = num_lines
299
return ('ParentText(%(parent)r, %(parent_pos)r, %(child_pos)r,'
289
return 'ParentText(%(parent)r, %(parent_pos)r, %(child_pos)r,'\
303
293
if self.__class__ is not other.__class__:
312
302
class BaseVersionedFile(object):