summaryrefslogtreecommitdiff
path: root/sandbox/async.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-12-03 18:47:19 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2017-12-10 10:51:07 -0800
commit9de46e416e5ac1be1c5ff170d1c1ada5b8d7278f (patch)
tree62291426bc36f26ed5ac65d597ed15a5654a4e22 /sandbox/async.py
parentef64493b8913e4069c4422ad14da6de405c445f6 (diff)
downloadpsycopg2-9de46e416e5ac1be1c5ff170d1c1ada5b8d7278f.tar.gz
Use print() function instead of print statement throughout project
Forward compatible with newer Pythons.
Diffstat (limited to 'sandbox/async.py')
-rw-r--r--sandbox/async.py6
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)