[Python-checkins] cpython (2.7): Closes #16657: fix docstring of traceback.format_tb().

georg.brandl python-checkins at python.org
Sun Oct 13 23:30:55 CEST 2013


http://hg.python.org/cpython/rev/e6ab0cd959a0
changeset:   86350:e6ab0cd959a0
branch:      2.7
parent:      86348:ee7c6fe60aca
user:        Georg Brandl <georg at python.org>
date:        Sun Oct 13 23:31:38 2013 +0200
summary:
  Closes #16657: fix docstring of traceback.format_tb().

files:
  Lib/traceback.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/traceback.py b/Lib/traceback.py
--- a/Lib/traceback.py
+++ b/Lib/traceback.py
@@ -72,7 +72,7 @@
         n = n+1
 
 def format_tb(tb, limit = None):
-    """A shorthand for 'format_list(extract_stack(f, limit))."""
+    """A shorthand for 'format_list(extract_tb(tb, limit))'."""
     return format_list(extract_tb(tb, limit))
 
 def extract_tb(tb, limit = None):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list