summaryrefslogtreecommitdiff
path: root/psycopg/adapter_qstring.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_qstring.c
parent2dc28ee7d87b50a80f4adac019ee0765c68a350e (diff)
downloadpsycopg2-ed6a4c8b1aa73402f23dbeaf0fa129a3045a2653.tar.gz
Dropped PyArg_ParseTuple() calls in functions taking no arguments.
Diffstat (limited to 'psycopg/adapter_qstring.c')
-rw-r--r--psycopg/adapter_qstring.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/psycopg/adapter_qstring.c b/psycopg/adapter_qstring.c
index 1fc3d9a..59c1d7b 100644
--- a/psycopg/adapter_qstring.c
+++ b/psycopg/adapter_qstring.c
@@ -136,7 +136,6 @@ qstring_str(qstringObject *self)
static PyObject *
qstring_getquoted(qstringObject *self, PyObject *args)
{
- if (!PyArg_ParseTuple(args, "")) return NULL;
return qstring_str(self);
}
@@ -196,7 +195,7 @@ static struct PyMemberDef qstringObject_members[] = {
/* object method table */
static PyMethodDef qstringObject_methods[] = {
- {"getquoted", (PyCFunction)qstring_getquoted, METH_VARARGS,
+ {"getquoted", (PyCFunction)qstring_getquoted, METH_NOARGS,
"getquoted() -> wrapped object value as SQL-quoted string"},
{"prepare", (PyCFunction)qstring_prepare, METH_VARARGS,
"prepare(conn) -> set encoding to conn->encoding and store conn"},