summaryrefslogtreecommitdiff
path: root/examples/notify.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/notify.py')
-rw-r--r--examples/notify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/notify.py b/examples/notify.py
index b5a613d..c88098a 100644
--- a/examples/notify.py
+++ b/examples/notify.py
@@ -39,5 +39,5 @@ while 1:
if select.select([curs],[],[],5)==([],[],[]):
print "Timeout"
else:
- if curs.isready():
+ if not curs.poll():
print "Got NOTIFY: %s" % str(curs.connection.notifies.pop())