This commit is contained in:
David Rose 2003-01-21 16:56:35 +00:00
parent 9411fd0af0
commit ffe2d598a9

View File

@ -50,6 +50,12 @@ class MetaInterval(CMetaInterval):
# We must allow the old style: Track([ ival0, ival1, ... ]) as
# well as the new style: Track(ival0, ival1, ...)
# Note: this breaks in the case of a Track with one tuple:
# Track((0, ival0),). We could go through some effort to fix
# this case, but for now I prefer just to document it as a
# bug, since it will go away when we eventually remove support
# for the old interface.
if len(ivals) == 1 and \
(isinstance(ivals[0], types.TupleType) or \
isinstance(ivals[0], types.ListType)):