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