Kaydet (Commit) fb0e0570 authored tarafından Michael Foord's avatar Michael Foord

Issue 6581. Michael Foord

üst 3591a8f8
......@@ -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."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment