Skip to content

Commit 3ba9f49

Browse files
committed
Fix small typo in code and docs
1 parent 798d5ad commit 3ba9f49

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
build
1414
dist
15+
local
1516

1617
.idea
1718
.tox

Diff for: dbutils/pooled_db.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
setsession: an optional list of SQL commands that may serve to
5454
prepare the session, e.g. ["set datestyle to german", ...]
5555
reset: how connections should be reset when returned to the pool
56-
(False or None to rollback transcations started with begin(),
56+
(False or None to rollback transactions started with begin(),
5757
the default value True always issues a rollback for safety's sake)
5858
failures: an optional exception class or a tuple of exception classes
5959
for which the connection failover mechanism shall be applied,
@@ -207,7 +207,7 @@ def __init__(
207207
setsession: optional list of SQL commands that may serve to prepare
208208
the session, e.g. ["set datestyle to ...", "set time zone ..."]
209209
reset: how connections should be reset when returned to the pool
210-
(False or None to rollback transcations started with begin(),
210+
(False or None to rollback transactions started with begin(),
211211
True to always issue a rollback for safety's sake)
212212
failures: an optional exception class or a tuple of exception classes
213213
for which the connection failover mechanism shall be applied,

Diff for: dbutils/pooled_pg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def __init__(
162162
setsession: optional list of SQL commands that may serve to prepare
163163
the session, e.g. ["set datestyle to ...", "set time zone ..."]
164164
reset: how connections should be reset when returned to the pool
165-
(0 or None to rollback transcations started with begin(),
165+
(0 or None to rollback transactions started with begin(),
166166
1 to always issue a rollback, 2 for a complete reset)
167167
args, kwargs: the parameters that shall be used to establish
168168
the PostgreSQL connections using class PyGreSQL pg.DB()

Diff for: dbutils/steady_pg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def reopen(self):
183183
try:
184184
self._con.reopen()
185185
except Exception:
186-
if self._transcation:
186+
if self._transaction:
187187
self._transaction = False
188188
try:
189189
self._con.query('rollback')

Diff for: docs/main.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ <h3>PooledDB (pooled_db)</h3>
337337
<li><p><span class="docutils literal">setsession</span>: an optional list of SQL commands that may serve to
338338
prepare the session, e.g. <span class="docutils literal">[&quot;set datestyle to german&quot;, <span class="pre">...]</span></span></p></li>
339339
<li><p><span class="docutils literal">reset</span>: how connections should be reset when returned to the pool
340-
(<span class="docutils literal">False</span> or <span class="docutils literal">None</span> to rollback transcations started with <span class="docutils literal">begin()</span>,
340+
(<span class="docutils literal">False</span> or <span class="docutils literal">None</span> to rollback transactions started with <span class="docutils literal">begin()</span>,
341341
the default value <span class="docutils literal">True</span> always issues a rollback for safety's sake)</p></li>
342342
<li><p><span class="docutils literal">failures</span>: an optional exception class or a tuple of exception classes
343343
for which the connection failover mechanism shall be applied,

Diff for: docs/main.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ following parameters:
343343
prepare the session, e.g. ``["set datestyle to german", ...]``
344344

345345
* ``reset``: how connections should be reset when returned to the pool
346-
(``False`` or ``None`` to rollback transcations started with ``begin()``,
346+
(``False`` or ``None`` to rollback transactions started with ``begin()``,
347347
the default value ``True`` always issues a rollback for safety's sake)
348348

349349
* ``failures``: an optional exception class or a tuple of exception classes

0 commit comments

Comments
 (0)