diff options
author | Guido van Rossum <guido@python.org> | 1991-07-22 11:48:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-07-22 11:48:07 (GMT) |
commit | a60810973d07c3df88ce4bbefacc32681c329f2f (patch) | |
tree | fe9dad2188399db3423388f330af05a1d3c7545a /Python/ceval.c | |
parent | 56f7837704bc5f1ca9390b20fbb7a1e795312d17 (diff) | |
download | cpython-a60810973d07c3df88ce4bbefacc32681c329f2f.zip cpython-a60810973d07c3df88ce4bbefacc32681c329f2f.tar.gz cpython-a60810973d07c3df88ce4bbefacc32681c329f2f.tar.bz2 |
Call printobject instead of fwrite to print strings.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files 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 { |