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)
while (tb != NULL) {
if (intrcheck())
break;
fprintf(fp, " File \"");
if (printobject(tb->tb_frame->f_code->co_filename,
fp, PRINT_RAW) != 0) {
err_clear();
break;
}
fprintf(fp, "\", line %d\n", tb->tb_lineno);
fprintf(fp, " File \"%s\"",
getstringvalue(tb->tb_frame->f_code->co_filename));
#ifdef applec /* MPW */
/* This is needed by MPW's File and Line commands */
fprintf(fp, "; ");
#else
/* This is needed by Emacs' compile command */
fprintf(fp, ", ");
#endif
fprintf(fp, "line %d\n", tb->tb_lineno);
tb_displayline(fp,
getstringvalue(tb->tb_frame->f_code->co_filename),
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