[Python-checkins] bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271)
Alex Henrie
webhook-mailer at python.org
Thu Jan 30 04:39:33 EST 2020
https://github.com/python/cpython/commit/1f44e775df8e7ec3ca60a1135cb3279f8b9dca3e
commit: 1f44e775df8e7ec3ca60a1135cb3279f8b9dca3e
branch: master
author: Alex Henrie <alexhenrie24 at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-01-30T12:39:25+03:00
summary:
bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271)
files:
M Modules/_sqlite/cursor.c
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index 47dbc77474120..2302ca9edac2d 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -611,7 +611,6 @@ static PyObject *
pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
{
PyObject* script_obj;
- PyObject* script_str = NULL;
const char* script_cstr;
sqlite3_stmt* statement;
int rc;
@@ -685,8 +684,6 @@ pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
}
error:
- Py_XDECREF(script_str);
-
if (PyErr_Occurred()) {
return NULL;
} else {
More information about the Python-checkins
mailing list