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_binary.c | |
| parent | 2dc28ee7d87b50a80f4adac019ee0765c68a350e (diff) | |
| download | psycopg2-ed6a4c8b1aa73402f23dbeaf0fa129a3045a2653.tar.gz | |
Dropped PyArg_ParseTuple() calls in functions taking no arguments.
Diffstat (limited to 'psycopg/adapter_binary.c')
| -rw-r--r-- | psycopg/adapter_binary.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/psycopg/adapter_binary.c b/psycopg/adapter_binary.c index 641d317..9b4a1c3 100644 --- a/psycopg/adapter_binary.c +++ b/psycopg/adapter_binary.c @@ -111,7 +111,6 @@ binary_str(binaryObject *self) static PyObject * binary_getquoted(binaryObject *self, PyObject *args) { - if (!PyArg_ParseTuple(args, "")) return NULL; return binary_str(self); } @@ -162,7 +161,7 @@ static struct PyMemberDef binaryObject_members[] = { /* object method table */ static PyMethodDef binaryObject_methods[] = { - {"getquoted", (PyCFunction)binary_getquoted, METH_VARARGS, + {"getquoted", (PyCFunction)binary_getquoted, METH_NOARGS, "getquoted() -> wrapped object value as SQL-quoted binary string"}, {"prepare", (PyCFunction)binary_prepare, METH_VARARGS, "prepare(conn) -> prepare for binary encoding using conn"}, |
