diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2011-10-09 10:38:36 +0200 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2011-10-09 10:38:36 +0200 |
| commit | dcacb24f386ae1b107462181af42b6826ec15fb7 (patch) | |
| tree | ed05b3b498c8ef724d116a5c46c3fb20ce395773 /Python/sysmodule.c | |
| parent | 08445566b23e60a05193826e327472776644c2b6 (diff) | |
| download | cpython-dcacb24f386ae1b107462181af42b6826ec15fb7.tar.gz | |
Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
Diffstat (limited to 'Python/sysmodule.c')
| -rw-r--r-- | Python/sysmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 3576cedf63..f0aceada5f 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -99,7 +99,8 @@ sys_displayhook_unencodable(PyObject *outf, PyObject *o) buffer = PyObject_GetAttrString(outf, "buffer"); if (buffer) { - result = PyObject_CallMethod(buffer, "write", "(O)", encoded); + _Py_identifier(write); + result = _PyObject_CallMethodId(buffer, &PyId_write, "(O)", encoded); Py_DECREF(buffer); Py_DECREF(encoded); if (result == NULL) |
