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_datetime.c | |
parent | 2dc28ee7d87b50a80f4adac019ee0765c68a350e (diff) | |
download | psycopg2-ed6a4c8b1aa73402f23dbeaf0fa129a3045a2653.tar.gz |
Dropped PyArg_ParseTuple() calls in functions taking no arguments.
Diffstat (limited to 'psycopg/adapter_datetime.c')
-rw-r--r-- | psycopg/adapter_datetime.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/psycopg/adapter_datetime.c b/psycopg/adapter_datetime.c index 5f7327b..7ba98f2 100644 --- a/psycopg/adapter_datetime.c +++ b/psycopg/adapter_datetime.c @@ -106,7 +106,6 @@ pydatetime_str(pydatetimeObject *self) static PyObject * pydatetime_getquoted(pydatetimeObject *self, PyObject *args) { - if (!PyArg_ParseTuple(args, "")) return NULL; return pydatetime_str(self); } @@ -139,7 +138,7 @@ static struct PyMemberDef pydatetimeObject_members[] = { /* object method table */ static PyMethodDef pydatetimeObject_methods[] = { - {"getquoted", (PyCFunction)pydatetime_getquoted, METH_VARARGS, + {"getquoted", (PyCFunction)pydatetime_getquoted, METH_NOARGS, "getquoted() -> wrapped object value as SQL date/time"}, {"__conform__", (PyCFunction)pydatetime_conform, METH_VARARGS, NULL}, {NULL} /* Sentinel */ |