diff options
| author | Oleksandr Shulgin <oleksandr.shulgin@zalando.de> | 2015-10-14 17:42:53 +0200 |
|---|---|---|
| committer | Oleksandr Shulgin <oleksandr.shulgin@zalando.de> | 2015-10-14 17:42:53 +0200 |
| commit | e3097ec9562a09b66f3d73e5bf901c8295909f38 (patch) | |
| tree | b0cbbb959ec037d8b0c46cb1712d22c59b8eb014 /doc/src/extras.rst | |
| parent | 822d671e8b2b0039bbcfb908c87fd239aa152faf (diff) | |
| download | psycopg2-e3097ec9562a09b66f3d73e5bf901c8295909f38.tar.gz | |
Fix select/timeout indication in async replication example
Diffstat (limited to 'doc/src/extras.rst')
| -rw-r--r-- | doc/src/extras.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/extras.rst b/doc/src/extras.rst index a9ba52f..e2ded4b 100644 --- a/doc/src/extras.rst +++ b/doc/src/extras.rst @@ -501,9 +501,9 @@ The individual messages in the replication stream are presented by if timeout > 0: sel = select.select([cur], [], [], timeout) else: - sel = [] + sel = ([], [], []) - if not sel: + if not sel[0]: cur.send_replication_feedback() |
