FunctionInterval should report its name as Func

This commit is contained in:
David Rose 2003-08-04 17:47:28 +00:00
parent 5994cdffbd
commit 91236ff836
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class FunctionInterval(Interval.Interval):
self.function = function
# Create a unique name for the interval if necessary
if (name == None):
name = 'FunctionInterval-%s-%d' % (function.__name__, FunctionInterval.functionIntervalNum)
name = 'Func-%s-%d' % (function.__name__, FunctionInterval.functionIntervalNum)
FunctionInterval.functionIntervalNum += 1
assert(isinstance(name, types.StringType))
# Record any arguments