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 /Modules/_cursesmodule.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 'Modules/_cursesmodule.c')
-rw-r--r-- | Modules/_cursesmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 1f192dc..5cdd926 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -2578,7 +2578,7 @@ PyCurses_setupterm(PyObject* self, PyObject *args, PyObject* keywds) if (fd == -1) { PyObject* sys_stdout; - sys_stdout = PySys_GetObject("stdout"); + sys_stdout = _PySys_GetObjectId(&_PyId_stdout); if (sys_stdout == NULL || sys_stdout == Py_None) { PyErr_SetString( |