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())