diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-04-19 01:01:59 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-04-19 01:01:59 +0100 |
| commit | 248e653c9e2ec2dfc0b1eac9561981b34a637f9d (patch) | |
| tree | 9496cf5abeca9775b481c7118c706f84d37b01e3 /psycopg | |
| parent | 4b4d2796b7efdd0846e972fd7a300ca4e7b11ccd (diff) | |
| download | psycopg2-248e653c9e2ec2dfc0b1eac9561981b34a637f9d.tar.gz | |
Fixed args parsing in ReplicationCursor.consume_stream()
Close #547.
Diffstat (limited to 'psycopg')
| -rw-r--r-- | psycopg/replication_cursor_type.c | 2 |
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; } |
