Issue 6581. Michael Foord

This commit is contained in:
Michael Foord 2009-07-26 21:11:42 +00:00
parent 308681c405
commit 133ebff5c8
1 changed files with 4 additions and 1 deletions

View File

@ -947,7 +947,10 @@ def getinnerframes(tb, context=1):
tb = tb.tb_next
return framelist
if hasattr(sys, '_getframe'):
currentframe = sys._getframe
else:
currentframe = lambda _=None: None
def stack(context=1):
"""Return a list of records for the stack above the caller's frame."""