This commit is contained in:
Benjamin Peterson 2010-08-09 15:49:56 +00:00
parent 42ac47548d
commit a3a3fc6770
1 changed files with 1 additions and 1 deletions

View File

@ -1063,7 +1063,7 @@ def getinnerframes(tb, context=1):
return framelist
def currentframe():
"""Return the frame or the caller or None if this is not possible."""
"""Return the frame of the caller or None if this is not possible."""
return sys._getframe(1) if hasattr(sys, "_getframe") else None
def stack(context=1):