From a57a9976b4f0cd0b054188dfc1bfefd8fb6fae6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Urba=C5=84ski?= Date: Sun, 18 Apr 2010 15:54:32 +0200 Subject: [PATCH] Fix the NOTIFY example to use the correct APIs --- examples/notify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/notify.py b/examples/notify.py index c88098a8..130ab1a3 100644 --- a/examples/notify.py +++ b/examples/notify.py @@ -36,8 +36,8 @@ curs.execute("listen test") print "Waiting for 'NOTIFY test'" while 1: - if select.select([curs],[],[],5)==([],[],[]): + if select.select([curs.connection],[],[],5)==([],[],[]): print "Timeout" else: - if not curs.poll(): + if not curs.connection.poll(): print "Got NOTIFY: %s" % str(curs.connection.notifies.pop())