New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracebacks are not properly indented #47592
Comments
r62555 has the unfortunate effect that source lines are no more indented 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 |
I really hate how touchy the indentation output is for warnings/tracebacks. |
This is why I added an explicit "indent" parameter to Py_DisplaySourceLine. |
Corrected as r64881. |
Thanks for fixing this and renaming the function, Amaury! On Fri, Jul 11, 2008 at 2:46 PM, Amaury Forgeot d'Arc
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: