Commit 247ff718 authored by Guido van Rossum's avatar Guido van Rossum

Don't use printobject() to print a string (filename).

Print ';' instead of ',' between file and line for MPW.
parent 1d2a9ade
...@@ -188,13 +188,16 @@ tb_printinternal(tb, fp) ...@@ -188,13 +188,16 @@ tb_printinternal(tb, fp)
while (tb != NULL) { while (tb != NULL) {
if (intrcheck()) if (intrcheck())
break; break;
fprintf(fp, " File \""); fprintf(fp, " File \"%s\"",
if (printobject(tb->tb_frame->f_code->co_filename, getstringvalue(tb->tb_frame->f_code->co_filename));
fp, PRINT_RAW) != 0) { #ifdef applec /* MPW */
err_clear(); /* This is needed by MPW's File and Line commands */
break; fprintf(fp, "; ");
} #else
fprintf(fp, "\", line %d\n", tb->tb_lineno); /* This is needed by Emacs' compile command */
fprintf(fp, ", ");
#endif
fprintf(fp, "line %d\n", tb->tb_lineno);
tb_displayline(fp, tb_displayline(fp,
getstringvalue(tb->tb_frame->f_code->co_filename), getstringvalue(tb->tb_frame->f_code->co_filename),
tb->tb_lineno); tb->tb_lineno);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment