Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 72925:7109f31300fb
Rename _Py_identifier to _Py_IDENTIFIER.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Fri, 14 Oct 2011 10:20:37 +0200 |
| parents | 81380082d216 |
| children | db4aa878cea2 |
line wrap: on
line diff
--- a/Python/sysmodule.c Fri Oct 14 12:53:10 2011 +0200 +++ b/Python/sysmodule.c Fri Oct 14 10:20:37 2011 +0200 @@ -79,8 +79,8 @@ 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 @@ 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 @@ { PyObject *writer = NULL, *args = NULL, *result = NULL; int err; - _Py_identifier(write); + _Py_IDENTIFIER(write); if (file == NULL) return -1;
