summaryrefslogtreecommitdiff
path: root/psycopg
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-04-19 01:01:59 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-04-19 01:01:59 +0100
commit248e653c9e2ec2dfc0b1eac9561981b34a637f9d (patch)
tree9496cf5abeca9775b481c7118c706f84d37b01e3 /psycopg
parent4b4d2796b7efdd0846e972fd7a300ca4e7b11ccd (diff)
downloadpsycopg2-248e653c9e2ec2dfc0b1eac9561981b34a637f9d.tar.gz
Fixed args parsing in ReplicationCursor.consume_stream()
Close #547.
Diffstat (limited to 'psycopg')
-rw-r--r--psycopg/replication_cursor_type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/replication_cursor_type.c b/psycopg/replication_cursor_type.c
index d66bec3..d00b31c 100644
--- a/psycopg/replication_cursor_type.c
+++ b/psycopg/replication_cursor_type.c
@@ -85,7 +85,7 @@ psyco_repl_curs_consume_stream(replicationCursorObject *self,
double keepalive_interval = 10;
static char *kwlist[] = {"consume", "keepalive_interval", NULL};
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|id", kwlist,
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|d", kwlist,
&consume, &keepalive_interval)) {
return NULL;
}