Skip to content

Commit d94d869

Browse files
authored
Fix a tutorial bug (#35)
db.cursor is a method, not a property.
1 parent f818201 commit d94d869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ <h3>PooledDB (pooled_db)</h3>
384384
db.close() # or del db</pre>
385385
<p>You can also use context managers for simpler code:</p>
386386
<pre class="literal-block">with pool.connection() as db:
387-
with db.cursor as cur:
387+
with db.cursor() as cur:
388388
cur.execute(...)
389389
res = cur.fetchone()</pre>
390390
<p>Note that you need to explicitly start transactions by calling the

0 commit comments

Comments
 (0)