mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Rename _Py_identifier to _Py_IDENTIFIER.
This commit is contained in:
parent
01277d166a
commit
bd928fef42
57 changed files with 262 additions and 262 deletions
|
@ -157,7 +157,7 @@ static PyObject *
|
|||
weakref_repr(PyWeakReference *self)
|
||||
{
|
||||
PyObject *name, *repr;
|
||||
_Py_identifier(__name__);
|
||||
_Py_IDENTIFIER(__name__);
|
||||
|
||||
if (PyWeakref_GET_OBJECT(self) == Py_None)
|
||||
return PyUnicode_FromFormat("<weakref at %p; dead>", self);
|
||||
|
@ -441,7 +441,7 @@ proxy_checkref(PyWeakReference *proxy)
|
|||
#define WRAP_METHOD(method, special) \
|
||||
static PyObject * \
|
||||
method(PyObject *proxy) { \
|
||||
_Py_identifier(special); \
|
||||
_Py_IDENTIFIER(special); \
|
||||
UNWRAP(proxy); \
|
||||
return _PyObject_CallMethodId(proxy, &PyId_##special, ""); \
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue