diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-06 21:41:44 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-06 21:41:44 (GMT) |
commit | 090543736fa86c676252de7a44e6a7c6f347164e (patch) | |
tree | ca82d3bf4857aa474ba91d81c64cc946a22d31a0 /Python/errors.c | |
parent | bb52020d44b6f3f1ebd16ec6ce38f1f8a6330728 (diff) | |
download | cpython-090543736fa86c676252de7a44e6a7c6f347164e.zip cpython-090543736fa86c676252de7a44e6a7c6f347164e.tar.gz cpython-090543736fa86c676252de7a44e6a7c6f347164e.tar.bz2 |
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 1832b5b..b92911a 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; |