1
0
mirror of https://github.com/django/django.git synced 2025-03-30 11:10:45 +00:00

Fixed typos in Atomic docstring.

This commit is contained in:
Muhammad N. Fadhil 2024-07-15 21:57:03 +03:00 committed by Sarah Boyce
parent 9cb8baa0c4
commit ee20e2d038

@ -156,7 +156,7 @@ class Atomic(ContextDecorator):
It's possible to disable the creation of savepoints if the goal is to It's possible to disable the creation of savepoints if the goal is to
ensure that some code runs within a transaction without creating overhead. ensure that some code runs within a transaction without creating overhead.
A stack of savepoints identifiers is maintained as an attribute of the A stack of savepoint identifiers is maintained as an attribute of the
connection. None denotes the absence of a savepoint. connection. None denotes the absence of a savepoint.
This allows reentrancy even if the same AtomicWrapper is reused. For This allows reentrancy even if the same AtomicWrapper is reused. For
@ -165,10 +165,10 @@ class Atomic(ContextDecorator):
Since database connections are thread-local, this is thread-safe. Since database connections are thread-local, this is thread-safe.
An atomic block can be tagged as durable. In this case, raise a An atomic block can be tagged as durable. In this case, a RuntimeError is
RuntimeError if it's nested within another atomic block. This guarantees raised if it's nested within another atomic block. This guarantees
that database changes in a durable block are committed to the database when that database changes in a durable block are committed to the database when
the block exists without error. the block exits without error.
This is a private API. This is a private API.
""" """