[Python-checkins] cpython (merge 3.5 -> default): Closes #27208: Merge with 3.5
zach.ware
python-checkins at python.org
Wed Aug 10 01:36:00 EDT 2016
https://hg.python.org/cpython/rev/76c04e780cd5
changeset: 102596:76c04e780cd5
parent: 102594:ea43895ebfd9
parent: 102595:eadf2905f424
user: Zachary Ware <zachary.ware at gmail.com>
date: Wed Aug 10 00:35:51 2016 -0500
summary:
Closes #27208: Merge with 3.5
files:
Doc/library/traceback.rst | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst
--- a/Doc/library/traceback.rst
+++ b/Doc/library/traceback.rst
@@ -361,7 +361,7 @@
traceback.print_exception(exc_type, exc_value, exc_traceback,
limit=2, file=sys.stdout)
print("*** print_exc:")
- traceback.print_exc()
+ traceback.print_exc(limit=2, file=sys.stdout)
print("*** format_exc, first and last line:")
formatted_lines = traceback.format_exc().splitlines()
print(formatted_lines[0])
@@ -407,9 +407,9 @@
' File "<doctest...>", line 7, in bright_side_of_death\n return tuple()[0]\n',
'IndexError: tuple index out of range\n']
*** extract_tb:
- [('<doctest...>', 10, '<module>', 'lumberjack()'),
- ('<doctest...>', 4, 'lumberjack', 'bright_side_of_death()'),
- ('<doctest...>', 7, 'bright_side_of_death', 'return tuple()[0]')]
+ [<FrameSummary file <doctest...>, line 10 in <module>>,
+ <FrameSummary file <doctest...>, line 4 in lumberjack>,
+ <FrameSummary file <doctest...>, line 7 in bright_side_of_death>]
*** format_tb:
[' File "<doctest...>", line 10, in <module>\n lumberjack()\n',
' File "<doctest...>", line 4, in lumberjack\n bright_side_of_death()\n',
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list