From a60810973d07c3df88ce4bbefacc32681c329f2f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 22 Jul 1991 11:48:07 +0000 Subject: Call printobject instead of fwrite to print strings. --- Python/ceval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/ceval.c b/Python/ceval.c index 4f81bff..2ab77c0 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -442,8 +442,8 @@ eval_code(co, globals, locals, arg) if (is_stringobject(v)) { char *s = getstringvalue(v); int len = getstringsize(v); - fwrite(s, 1, len, fp); - if (len > 0 && s[len-1] == '\n') + err = printobject(v, fp, PRINT_RAW); + if (err == 0 && len > 0 && s[len-1] == '\n') softspace(sysget("stdout"), 0); } else { -- cgit v0.12