support unlimited stack tracebacks

This commit is contained in:
Darren Ranalli 2005-01-22 05:05:18 +00:00
parent 176ca9dc18
commit 78ae42c118

View File

@ -81,7 +81,11 @@ if __debug__:
to record (or None for unlimited).
"""
self.label = label
self.trace = traceback.extract_stack(sys._getframe(1+start), limit=10)
if limit is not None:
self.trace = traceback.extract_stack(sys._getframe(1+start),
limit=limit)
else:
self.trace = traceback.extract_stack(sys._getframe(1+start))
def __str__(self):
r = "Debug stack trace of %s (back %s frames):\n"%(