Browse Source

extend list operations

David Rose 23 years ago
parent
commit
9b751ba6a2
1 changed files with 1 additions and 4 deletions
  1. 1 4
      direct/src/interval/MetaInterval.py

+ 1 - 4
direct/src/interval/MetaInterval.py

@@ -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)