diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-06 22:41:44 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-06 22:41:44 +0100 |
commit | abe98ac333cb6792ed82b144822738e50e38d443 (patch) | |
tree | 76649170bb709d7963e3fbb2cd2d8456013fc9bd /Python/errors.c | |
parent | 7fa5614063002b9d94f2181bb78f8b44da419677 (diff) | |
download | cpython-abe98ac333cb6792ed82b144822738e50e38d443.tar.gz |
Issue #19512: add some common identifiers to only create common strings once,
instead of creating temporary Unicode string objects
Add also more identifiers in pythonrun.c to avoid temporary Unicode string
objets for the interactive interpreter.
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c index 1832b5b602..b92911a034 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -844,7 +844,7 @@ PyErr_WriteUnraisable(PyObject *obj) PyErr_Fetch(&t, &v, &tb); - f = PySys_GetObject("stderr"); + f = _PySys_GetObjectId(&_PyId_stderr); if (f == NULL || f == Py_None) goto done; |