Skip to content

Commit 07b340d

Browse files
committed
Fix source and German version of tutorial (#35)
1 parent d94d869 commit 07b340d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/main.de.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ <h3>PooledDB (pooled_db)</h3>
422422
db.close() # oder del db</pre>
423423
<p>Sie können dies auch durch Verwendung von Kontext-Managern vereinfachen:</p>
424424
<pre class="literal-block">with pool.connection() as db:
425-
with db.cursor as cur:
425+
with db.cursor() as cur:
426426
cur.execute(...)
427427
res = cur.fetchone()</pre>
428428
<p>Bitte beachten Sie, dass Transaktionen explizit durch Aufruf der Methode

docs/main.de.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ sie gebraucht werden, etwa so::
446446
Sie können dies auch durch Verwendung von Kontext-Managern vereinfachen::
447447

448448
with pool.connection() as db:
449-
with db.cursor as cur:
449+
with db.cursor() as cur:
450450
cur.execute(...)
451451
res = cur.fetchone()
452452

docs/main.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ object stays alive as long as you are using it, like that::
408408
You can also use context managers for simpler code::
409409

410410
with pool.connection() as db:
411-
with db.cursor as cur:
411+
with db.cursor() as cur:
412412
cur.execute(...)
413413
res = cur.fetchone()
414414

0 commit comments

Comments
 (0)