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

Issue 6581. Michael Foord

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