Staging
v0.5.1
https://github.com/python/cpython
Revision 49020174305ca3dc90a811b03a05f44873297c61 authored by Miss Islington (bot) on 10 September 2018, 16:00:08 UTC, committed by GitHub on 10 September 2018, 16:00:08 UTC

The recursive frame pruning code always undercounted the number of elided frames
by one. That is, in the "[Previous line repeated N more times]" message, N would
always be one too few. Near the recursive pruning cutoff, one frame could be
silently dropped. That situation is demonstrated in the OP of the bug report.

The fix is to start the identical frame counter at 1.
(cherry picked from commit d545869d084e70d4838310e79b52a25a72a1ca56)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent d53f1ca
History
Tip revision: 49020174305ca3dc90a811b03a05f44873297c61 authored by Miss Islington (bot) on 10 September 2018, 16:00:08 UTC
bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077)
Tip revision: 4902017
File Mode Size
.github
.vsts
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
m4
.gitattributes -rw-r--r-- 1.5 KB
.gitignore -rw-r--r-- 1.5 KB
.travis.yml -rw-r--r-- 6.0 KB
CODE_OF_CONDUCT.rst -rw-r--r-- 631 bytes
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 61.1 KB
README.rst -rw-r--r-- 10.4 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.1 KB
config.sub -rwxr-xr-x 35.4 KB
configure -rwxr-xr-x 484.6 KB
configure.ac -rw-r--r-- 161.4 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 42.1 KB
setup.py -rw-r--r-- 99.5 KB

README.rst

back to top