summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-10-14 08:20:37 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2011-10-14 08:20:37 (GMT)
commitbd928fef428e48084ff29ece0e21d07ad86d0793 (patch)
tree0fd61d271dabb554cc4824e7e80b4c6d915f6ae2 /Python/sysmodule.c
parent01277d166a993742814c772d01987fbaafb528d4 (diff)
downloadcpython-bd928fef428e48084ff29ece0e21d07ad86d0793.zip
cpython-bd928fef428e48084ff29ece0e21d07ad86d0793.tar.gz
cpython-bd928fef428e48084ff29ece0e21d07ad86d0793.tar.bz2
Rename _Py_identifier to _Py_IDENTIFIER.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 5195a4a..7a1933d 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -79,8 +79,8 @@ sys_displayhook_unencodable(PyObject *outf, PyObject *o)
PyObject *encoded, *escaped_str, *repr_str, *buffer, *result;
char *stdout_encoding_str;
int ret;
- _Py_identifier(encoding);
- _Py_identifier(buffer);
+ _Py_IDENTIFIER(encoding);
+ _Py_IDENTIFIER(buffer);
stdout_encoding = _PyObject_GetAttrId(outf, &PyId_encoding);
if (stdout_encoding == NULL)
@@ -101,7 +101,7 @@ sys_displayhook_unencodable(PyObject *outf, PyObject *o)
buffer = _PyObject_GetAttrId(outf, &PyId_buffer);
if (buffer) {
- _Py_identifier(write);
+ _Py_IDENTIFIER(write);
result = _PyObject_CallMethodId(buffer, &PyId_write, "(O)", encoded);
Py_DECREF(buffer);
Py_DECREF(encoded);
@@ -1843,7 +1843,7 @@ sys_pyfile_write_unicode(PyObject *unicode, PyObject *file)
{
PyObject *writer = NULL, *args = NULL, *result = NULL;
int err;
- _Py_identifier(write);
+ _Py_IDENTIFIER(write);
if (file == NULL)
return -1;