Issue 6581. Michael Foord

This commit is contained in:
Michael Foord 2009-07-26 21:12:14 +00:00
parent 3591a8f81d
commit fb0e0570f7

View file

@ -952,7 +952,10 @@ def getinnerframes(tb, context=1):
tb = tb.tb_next
return framelist
currentframe = sys._getframe
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."""