diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2013-11-07 17:46:53 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2013-11-07 17:46:53 (GMT) |
commit | e75fc148136bbef192c5572c14f3abf1f67abc57 (patch) | |
tree | fd2dc5da77e9fb8b242979d94a20242c3b6d5d80 /Modules/_sqlite | |
parent | d0293596b85f362be990dcb4892ba7c544f51fb8 (diff) | |
download | cpython-e75fc148136bbef192c5572c14f3abf1f67abc57.zip cpython-e75fc148136bbef192c5572c14f3abf1f67abc57.tar.gz cpython-e75fc148136bbef192c5572c14f3abf1f67abc57.tar.bz2 |
Issue #19514: Deduplicate some _Py_IDENTIFIER declarations.
Patch by Andrei Dorian Duma.
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r-- | Modules/_sqlite/connection.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 0411d23..7365a88 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -41,6 +41,8 @@ #endif #endif +_Py_IDENTIFIER(cursor); + static int pysqlite_connection_set_isolation_level(pysqlite_Connection* self, PyObject* isolation_level); static void _pysqlite_drop_unused_cursor_references(pysqlite_Connection* self); @@ -1279,7 +1281,6 @@ PyObject* pysqlite_connection_execute(pysqlite_Connection* self, PyObject* args, PyObject* cursor = 0; PyObject* result = 0; PyObject* method = 0; - _Py_IDENTIFIER(cursor); cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, ""); if (!cursor) { @@ -1309,7 +1310,6 @@ PyObject* pysqlite_connection_executemany(pysqlite_Connection* self, PyObject* a PyObject* cursor = 0; PyObject* result = 0; PyObject* method = 0; - _Py_IDENTIFIER(cursor); cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, ""); if (!cursor) { @@ -1339,7 +1339,6 @@ PyObject* pysqlite_connection_executescript(pysqlite_Connection* self, PyObject* PyObject* cursor = 0; PyObject* result = 0; PyObject* method = 0; - _Py_IDENTIFIER(cursor); cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, ""); if (!cursor) { |