summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-11 18:37:52 +0000
committerGeorg Brandl <georg@python.org>2008-06-11 18:37:52 +0000
commit3e4813394e9f96c08604ac16b15cca199f869480 (patch)
tree8664141a6b941dd5c7789bf6d63b9bb5f7f824c0 /Python/pythonrun.c
parenta7746fb3fa5cec034d5944c3e7e03727b916f048 (diff)
downloadcpython-3e4813394e9f96c08604ac16b15cca199f869480.tar.gz
#2630: Implement PEP 3138.
The repr() of a string now contains printable Unicode characters unescaped. The new ascii() builtin can be used to get a repr() with only ASCII characters in it. PEP and patch were written by Atsuo Ishimoto.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index ae5856a13a..c46e9f4cc1 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -793,7 +793,7 @@ initstdio(void)
}
else {
if (!(std = PyFile_FromFd(fd, "<stderr>", "w", -1, encoding,
- errors, "\n", 0))) {
+ "backslashreplace", "\n", 0))) {
goto error;
}
} /* if (fd < 0) */