summaryrefslogtreecommitdiff
path: root/examples/cursor.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cursor.py')
-rw-r--r--examples/cursor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cursor.py b/examples/cursor.py
index 465967c..58c8cf6 100644
--- a/examples/cursor.py
+++ b/examples/cursor.py
@@ -49,7 +49,7 @@ class Cursor(psycopg2.extensions.cursor):
if d is None:
raise NoDataError("no more data")
return d
-
+
curs = conn.cursor(cursor_factory=Cursor)
curs.execute("SELECT 1 AS foo")
print("Result of fetchone():", curs.fetchone())