diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2011-10-14 08:20:37 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2011-10-14 08:20:37 (GMT) |
commit | bd928fef428e48084ff29ece0e21d07ad86d0793 (patch) | |
tree | 0fd61d271dabb554cc4824e7e80b4c6d915f6ae2 /Modules/_sqlite | |
parent | 01277d166a993742814c772d01987fbaafb528d4 (diff) | |
download | cpython-bd928fef428e48084ff29ece0e21d07ad86d0793.zip cpython-bd928fef428e48084ff29ece0e21d07ad86d0793.tar.gz cpython-bd928fef428e48084ff29ece0e21d07ad86d0793.tar.bz2 |
Rename _Py_identifier to _Py_IDENTIFIER.
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r-- | Modules/_sqlite/connection.c | 10 | ||||
-rw-r--r-- | Modules/_sqlite/cursor.c | 2 | ||||
-rw-r--r-- | Modules/_sqlite/microprotocols.c | 4 | ||||
-rw-r--r-- | Modules/_sqlite/module.c | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index c2f218f..5cbf418 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -675,7 +675,7 @@ void _pysqlite_final_callback(sqlite3_context* context) { PyObject* function_result = NULL; PyObject** aggregate_instance; - _Py_identifier(finalize); + _Py_IDENTIFIER(finalize); #ifdef WITH_THREAD PyGILState_STATE threadstate; @@ -1231,7 +1231,7 @@ PyObject* pysqlite_connection_execute(pysqlite_Connection* self, PyObject* args, PyObject* cursor = 0; PyObject* result = 0; PyObject* method = 0; - _Py_identifier(cursor); + _Py_IDENTIFIER(cursor); cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, ""); if (!cursor) { @@ -1261,7 +1261,7 @@ PyObject* pysqlite_connection_executemany(pysqlite_Connection* self, PyObject* a PyObject* cursor = 0; PyObject* result = 0; PyObject* method = 0; - _Py_identifier(cursor); + _Py_IDENTIFIER(cursor); cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, ""); if (!cursor) { @@ -1291,7 +1291,7 @@ PyObject* pysqlite_connection_executescript(pysqlite_Connection* self, PyObject* PyObject* cursor = 0; PyObject* result = 0; PyObject* method = 0; - _Py_identifier(cursor); + _Py_IDENTIFIER(cursor); cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, ""); if (!cursor) { @@ -1441,7 +1441,7 @@ pysqlite_connection_create_collation(pysqlite_Connection* self, PyObject* args) PyObject* name; PyObject* retval; Py_ssize_t i, len; - _Py_identifier(upper); + _Py_IDENTIFIER(upper); char *uppercase_name_str; int rc; unsigned int kind; diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index b47fed4..75ee73a 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -150,7 +150,7 @@ PyObject* _pysqlite_get_converter(PyObject* key) { PyObject* upcase_key; PyObject* retval; - _Py_identifier(upper); + _Py_IDENTIFIER(upper); upcase_key = _PyObject_CallMethodId(key, &PyId_upper, ""); if (!upcase_key) { diff --git a/Modules/_sqlite/microprotocols.c b/Modules/_sqlite/microprotocols.c index c0f5e22..2261b80 100644 --- a/Modules/_sqlite/microprotocols.c +++ b/Modules/_sqlite/microprotocols.c @@ -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) { diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c index 20e1ec7..406d787 100644 --- a/Modules/_sqlite/module.c +++ b/Modules/_sqlite/module.c @@ -179,7 +179,7 @@ static PyObject* module_register_converter(PyObject* self, PyObject* args) PyObject* name = NULL; PyObject* callable; PyObject* retval = NULL; - _Py_identifier(upper); + _Py_IDENTIFIER(upper); if (!PyArg_ParseTuple(args, "UO", &orig_name, &callable)) { return NULL; |