From 559e5d7f4d1155e95fb6f925c927a263f9196935 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 11 Jun 2008 18:37:52 +0000 Subject: #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. --- Python/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pythonrun.c') 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, "", "w", -1, encoding, - errors, "\n", 0))) { + "backslashreplace", "\n", 0))) { goto error; } } /* if (fd < 0) */ -- cgit v1.2.1