fix wait_select sample to be extras not extensions

This commit is contained in:
Luke Nezda 2016-09-12 09:19:20 -05:00 committed by Daniele Varrazzo
parent 35b4a01b6d
commit dcb198e8b7

View File

@ -241,7 +241,7 @@ How do I interrupt a long-running query in an interactive shell?
.. code-block:: pycon .. code-block:: pycon
>>> psycopg2.extensions.set_wait_callback(psycopg2.extensions.wait_select) >>> psycopg2.extensions.set_wait_callback(psycopg2.extras.wait_select)
>>> cnn = psycopg2.connect('') >>> cnn = psycopg2.connect('')
>>> cur = cnn.cursor() >>> cur = cnn.cursor()
>>> cur.execute("select pg_sleep(10)") >>> cur.execute("select pg_sleep(10)")