summaryrefslogtreecommitdiff
path: root/psycopg/adapter_pboolean.c
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-11-09 03:18:54 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-11-09 03:18:54 +0000
commited6a4c8b1aa73402f23dbeaf0fa129a3045a2653 (patch)
tree7b30e9ed2993f29ea4e20df1a35cad1936adb9db /psycopg/adapter_pboolean.c
parent2dc28ee7d87b50a80f4adac019ee0765c68a350e (diff)
downloadpsycopg2-ed6a4c8b1aa73402f23dbeaf0fa129a3045a2653.tar.gz
Dropped PyArg_ParseTuple() calls in functions taking no arguments.
Diffstat (limited to 'psycopg/adapter_pboolean.c')
-rw-r--r--psycopg/adapter_pboolean.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/psycopg/adapter_pboolean.c b/psycopg/adapter_pboolean.c
index 4fd143b..edffe8f 100644
--- a/psycopg/adapter_pboolean.c
+++ b/psycopg/adapter_pboolean.c
@@ -62,7 +62,6 @@ pboolean_str(pbooleanObject *self)
static PyObject *
pboolean_getquoted(pbooleanObject *self, PyObject *args)
{
- if (!PyArg_ParseTuple(args, "")) return NULL;
return pboolean_str(self);
}
@@ -94,7 +93,7 @@ static struct PyMemberDef pbooleanObject_members[] = {
/* object method table */
static PyMethodDef pbooleanObject_methods[] = {
- {"getquoted", (PyCFunction)pboolean_getquoted, METH_VARARGS,
+ {"getquoted", (PyCFunction)pboolean_getquoted, METH_NOARGS,
"getquoted() -> wrapped object value as SQL-quoted string"},
{"__conform__", (PyCFunction)pboolean_conform, METH_VARARGS, NULL},
{NULL} /* Sentinel */