[issue3342] Tracebacks are not properly indented
Amaury Forgeot d'Arc
report at bugs.python.org
Fri Jul 11 14:03:13 CEST 2008
New submission from Amaury Forgeot d'Arc <amauryfa at gmail.com>:
r62555 has the unfortunate effect that source lines are no more indented
in tracebacks, as in:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\python\trunk\lib\re.py", line 150, in sub
return _compile(pattern, 0).sub(repl, string, count)
File "C:\python\trunk\lib\re.py", line 276, in filter
return sre_parse.expand_template(template, match)
File "c:\python\trunk\lib\sre_parse.py", line 793, in expand_template
raise error, "unmatched group"
sre_constants.error: unmatched group
And IMO, test_traceback.test_traceback_indentation() tests the wrong
behaviour :-(
I join a tentative patch to correct the problem.
----------
files: traceback.patch
keywords: patch
messages: 69546
nosy: amaury.forgeotdarc
severity: normal
status: open
title: Tracebacks are not properly indented
Added file: http://bugs.python.org/file10877/traceback.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3342>
_______________________________________
More information about the Python-bugs-list
mailing list