Permalink
Browse files

Corrected the example of using a BlockingClient connection context ma…

…nager.


Fixes #21
  • Loading branch information...
1 parent c4072bd commit 6a8025c6543bffae035f96644e1649ce87c7515b @peterbe peterbe committed Jul 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/examples.rst
View
@@ -38,7 +38,7 @@ The blocking client::
def get(self):
# Besides using a with statement everyting is the same as the normal
# Psycopg2 module
- with self.db.connection() as conn:
+ with self.db.connection as conn:
cursor = conn.cursor()
cursor.execute('SELECT 42, 12, 40, 11;')

0 comments on commit 6a8025c

Please sign in to comment.