Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0142d4a

Browse files
committed
Merged revisions 72007 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r72007 | georg.brandl | 2009-04-27 17:09:25 +0200 (Mo, 27 Apr 2009) | 1 line #5856: fix typo s in traceback example. ........
1 parent e720c0a commit 0142d4a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/traceback.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ The following example shows the different ways to print and format the stack::
269269
This last example demonstrates the final few formatting functions::
270270

271271
>>> import traceback
272-
>>> format_list([('spam.py', 3, '<module>', 'spam.eggs()'),
273-
... ('eggs.py', 42, 'eggs', 'return "bacon"')])
272+
>>> traceback.format_list([('spam.py', 3, '<module>', 'spam.eggs()'),
273+
... ('eggs.py', 42, 'eggs', 'return "bacon"')])
274274
[' File "spam.py", line 3, in <module>\n spam.eggs()\n',
275275
' File "eggs.py", line 42, in eggs\n return "bacon"\n']
276-
>>> theError = IndexError('tuple indx out of range')
277-
>>> traceback.format_exception_only(type(theError), theError)
276+
>>> an_error = IndexError('tuple index out of range')
277+
>>> traceback.format_exception_only(type(an_error), an_error)
278278
['IndexError: tuple index out of range\n']

0 commit comments

Comments
 (0)