diff options
Diffstat (limited to 'sandbox/async.py')
-rw-r--r-- | sandbox/async.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sandbox/async.py b/sandbox/async.py index e9fe281..3ddaa3a 100644 --- a/sandbox/async.py +++ b/sandbox/async.py @@ -15,7 +15,7 @@ curs = conn.cursor() def sleep(curs): while not curs.isready(): - print "." + print(".") time.sleep(.1) #curs.execute(""" @@ -24,12 +24,12 @@ def sleep(curs): # FOR READ ONLY;""", async = 1) curs.execute("SELECT now() AS foo", async=1) sleep(curs) -print curs.fetchall() +print(curs.fetchall()) #curs.execute(""" # FETCH FORWARD 1 FROM zz;""", async = 1) curs.execute("SELECT now() AS bar", async=1) -print curs.fetchall() +print(curs.fetchall()) curs.execute("SELECT now() AS bar") sleep(curs) |