The usage documentation is using variables, which are never assigned.
---
module/pgdb.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/module/pgdb.py b/module/pgdb.py
index c75ad5a..ede3e4a 100644
--- a/module/pgdb.py
+++ b/module/pgdb.py
@@ -23,9 +23,9 @@ Basic usage:
# All parts are optional. You may also pass host through
# password as keyword arguments. To pass a port,
# pass it in the host keyword parameter:
- pgdb.connect(host='localhost:5432')
+ connection = pgdb.connect(host='localhost:5432')
- connection.cursor() # open a cursor
+ cursor = connection.cursor() # open a cursor
cursor.execute(query[, params])
# Execute a query, binding params (a dictionary) if they are
--
1.9.1
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql