Skip to content

Commit 0afab5b

Browse files
committed
Fix transactions code example in docs
1 parent a53afcc commit 0afab5b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/examples.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,35 +219,35 @@ Let's create transactional cache:
219219
.. literalinclude:: ../examples/transactions.py
220220
:language: python
221221
:dedent: 8
222-
:lines: 81-84
222+
:lines: 82-85
223223

224224
Let's start a transaction and commit it:
225225

226226
.. literalinclude:: ../examples/transactions.py
227227
:language: python
228228
:dedent: 8
229-
:lines: 87-91
229+
:lines: 88-92
230230

231231
Let's check that the transaction was committed successfully:
232232

233233
.. literalinclude:: ../examples/transactions.py
234234
:language: python
235235
:dedent: 8
236-
:lines: 93-94
236+
:lines: 94-95
237237

238238
Let's check that raising exception inside `with` block leads to transaction's rollback
239239

240240
.. literalinclude:: ../examples/transactions.py
241241
:language: python
242242
:dedent: 8
243-
:lines: 97-107
243+
:lines: 98-108
244244

245245
Let's check that timed out transaction is successfully rolled back
246246

247247
.. literalinclude:: ../examples/transactions.py
248248
:language: python
249249
:dedent: 8
250-
:lines: 110-120
250+
:lines: 111-121
251251

252252
See more info about transaction's parameters in a documentation of :py:meth:`~pyignite.client.Client.tx_start`
253253

0 commit comments

Comments
 (0)