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/syslogmodule.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/syslogmodule.c')
-rw-r--r-- | Modules/syslogmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c index 9d79eec..edd12ab 100644 --- a/Modules/syslogmodule.c +++ b/Modules/syslogmodule.c @@ -71,7 +71,7 @@ syslog_get_argv(void) Py_ssize_t argv_len, scriptlen; PyObject *scriptobj; Py_ssize_t slash; - PyObject *argv = PySys_GetObject("argv"); + PyObject *argv = _PySys_GetObjectId(&_PyId_argv); if (argv == NULL) { return(NULL); |