extend list operations

This commit is contained in:
David Rose 2002-08-29 17:41:08 +00:00
parent 7f39e6dd87
commit 9b751ba6a2

View File

@ -66,10 +66,7 @@ class MetaInterval(CMetaInterval):
def extend(self, ivals):
# Appends a list of intervals to the list so far.
if isinstance(self.ivals, types.TupleType):
self.ivals = list(self.ivals)
self.ivals.extend(ivals)
self.__ivalsDirty = 1
self += ivals
def __len__(self):
return len(self.ivals)