Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(693)

Unified Diff: Python/_warnings.c

Issue 2448: PEP 3134 exception reporting (Closed) Base URL: http://svn.python.org/view/*checkout*/python/branches/py3k/
Patch Set: Patch addressing Guido's comments Created 15 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Modules/_testcapimodule.c ('k') | Python/errors.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Python/_warnings.c
===================================================================
--- Python/_warnings.c (revision 64927)
+++ Python/_warnings.c (working copy)
@@ -256,7 +256,6 @@
Py_XDECREF(name);
/* Print " source_line\n" */
- PyFile_WriteString(" ", f_stderr);
if (sourceline) {
char *source_line_str = PyUnicode_AsString(sourceline);
while (*source_line_str == ' ' || *source_line_str == '\t' ||
@@ -267,7 +266,7 @@
PyFile_WriteString("\n", f_stderr);
}
else
- Py_DisplaySourceLine(f_stderr, PyUnicode_AsString(filename), lineno);
+ Py_DisplaySourceLine(f_stderr, PyUnicode_AsString(filename), lineno, 2);
PyErr_Clear();
}
« no previous file with comments | « Modules/_testcapimodule.c ('k') | Python/errors.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b