Skip to content

Commit

Permalink
Fix small bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
FSX committed Dec 11, 2011
1 parent a17219c commit 64fcb55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
TODO

- Do some for testing with the blocking client.
- Expand the example for the blocking client.
- Updates examples pages in documentation.
- None
2 changes: 1 addition & 1 deletion examples/blocking_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SingleQueryHandler(BaseHandler):
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;')

Expand Down

0 comments on commit 64fcb55

Please sign in to comment.