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
|
@ -95,7 +95,7 @@ pysqlite_microprotocols_adapt(PyObject *obj, PyObject *proto, PyObject *alt)
|
|||
|
||||
/* try to have the protocol adapt this object*/
|
||||
if (PyObject_HasAttrString(proto, "__adapt__")) {
|
||||
_Py_identifier(__adapt__);
|
||||
_Py_IDENTIFIER(__adapt__);
|
||||
PyObject *adapted = _PyObject_CallMethodId(proto, &PyId___adapt__, "O", obj);
|
||||
|
||||
if (adapted) {
|
||||
|
@ -112,7 +112,7 @@ pysqlite_microprotocols_adapt(PyObject *obj, PyObject *proto, PyObject *alt)
|
|||
|
||||
/* and finally try to have the object adapt itself */
|
||||
if (PyObject_HasAttrString(obj, "__conform__")) {
|
||||
_Py_identifier(__conform__);
|
||||
_Py_IDENTIFIER(__conform__);
|
||||
PyObject *adapted = _PyObject_CallMethodId(obj, &PyId___conform__,"O", proto);
|
||||
|
||||
if (adapted) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue