diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-11-09 03:18:54 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-11-09 03:18:54 +0000 |
| commit | ed6a4c8b1aa73402f23dbeaf0fa129a3045a2653 (patch) | |
| tree | 7b30e9ed2993f29ea4e20df1a35cad1936adb9db /psycopg/adapter_pboolean.c | |
| parent | 2dc28ee7d87b50a80f4adac019ee0765c68a350e (diff) | |
| download | psycopg2-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.c | 3 |
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 */ |
