summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-06-08 11:41:19 (GMT)
committerGitHub <noreply@github.com>2017-06-08 11:41:19 (GMT)
commit6cca5c8459cc439cb050010ffa762a03859d3051 (patch)
tree9c144fde07123ff6c9d6f87a2a2b3d42883630d4 /Modules/_sqlite
parent865de27dd79571a4a5c7a7d22a07fb909c4a9f8e (diff)
downloadcpython-6cca5c8459cc439cb050010ffa762a03859d3051.zip
cpython-6cca5c8459cc439cb050010ffa762a03859d3051.tar.gz
cpython-6cca5c8459cc439cb050010ffa762a03859d3051.tar.bz2
bpo-30592: Fixed error messages for some builtins. (#1996)
Error messages when pass keyword arguments to some builtins that don't support keyword arguments contained double parenthesis: "()()". The regression was introduced by bpo-30534.
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/connection.c2
-rw-r--r--Modules/_sqlite/row.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index fab77ef..e2ba758 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -1218,7 +1218,7 @@ PyObject* pysqlite_connection_call(pysqlite_Connection* self, PyObject* args, Py
return NULL;
}
- if (!_PyArg_NoKeywords(MODULE_NAME ".Connection()", kwargs))
+ if (!_PyArg_NoKeywords(MODULE_NAME ".Connection", kwargs))
return NULL;
if (!PyArg_ParseTuple(args, "O", &sql))
diff --git a/Modules/_sqlite/row.c b/Modules/_sqlite/row.c
index c6c3e98..ec2c788 100644
--- a/Modules/_sqlite/row.c
+++ b/Modules/_sqlite/row.c
@@ -41,7 +41,7 @@ pysqlite_row_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
assert(type != NULL && type->tp_alloc != NULL);
- if (!_PyArg_NoKeywords("Row()", kwargs))
+ if (!_PyArg_NoKeywords("Row", kwargs))
return NULL;
if (!PyArg_ParseTuple(args, "OO", &cursor, &data))
return NULL;