summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-04-30 12:56:27 (GMT)
committerGitHub <noreply@github.com>2021-04-30 12:56:27 (GMT)
commit4908fae3d57f68694cf006e89fd7761f45003447 (patch)
treeb4168c26f8bc1017606f2308b34ae8bd1f573999 /Python/sysmodule.c
parent0cad068ec174bbe33fb80460da56eb413f3b9359 (diff)
downloadcpython-4908fae3d57f68694cf006e89fd7761f45003447.zip
cpython-4908fae3d57f68694cf006e89fd7761f45003447.tar.gz
cpython-4908fae3d57f68694cf006e89fd7761f45003447.tar.bz2
bpo-43916: PyStdPrinter_Type uses Py_TPFLAGS_DISALLOW_INSTANTIATION (GH-25749)
The PyStdPrinter_Type type now uses the Py_TPFLAGS_DISALLOW_INSTANTIATION flag to disallow instantiation, rather than seting a tp_init method which always fail. Write also unit tests for PyStdPrinter_Type.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 36297ff..2190bbf 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -3007,7 +3007,7 @@ err_occurred:
/* Set up a preliminary stderr printer until we have enough
infrastructure for the io module in place.
- Use UTF-8/surrogateescape and ignore EAGAIN errors. */
+ Use UTF-8/backslashreplace and ignore EAGAIN errors. */
static PyStatus
_PySys_SetPreliminaryStderr(PyObject *sysdict)
{