summaryrefslogtreecommitdiff
path: root/examples/myfirstrecipe.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 /examples/myfirstrecipe.py
parentef64493b8913e4069c4422ad14da6de405c445f6 (diff)
downloadpsycopg2-9de46e416e5ac1be1c5ff170d1c1ada5b8d7278f.tar.gz
Use print() function instead of print statement throughout project
Forward compatible with newer Pythons.
Diffstat (limited to 'examples/myfirstrecipe.py')
-rw-r--r--examples/myfirstrecipe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/myfirstrecipe.py b/examples/myfirstrecipe.py
index e0df879..1390ad0 100644
--- a/examples/myfirstrecipe.py
+++ b/examples/myfirstrecipe.py
@@ -122,5 +122,5 @@ register_adapter(int, AsIs)
# the SQL_IN class by calling psycopg's adapt() directly:
if __name__ == '__main__':
- print "Note how the string will be SQL-quoted, but the number will not:"
- print psycoadapt(("this is an 'sql quoted' str\\ing", 1, 2.0))
+ print("Note how the string will be SQL-quoted, but the number will not:")
+ print(psycoadapt(("this is an 'sql quoted' str\\ing", 1, 2.0)))