diff options
| author | Tim Graham <timograham@gmail.com> | 2018-10-25 19:54:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-25 19:54:48 -0400 |
| commit | 717ee63e5615a6c3a018351a07028513f9b01f0b (patch) | |
| tree | bbb2a92206b22846842106a3c34df841ee840fab /django/db/transaction.py | |
| parent | c6525bea9ec3d1d1e73585ca6e3116bb55afb336 (diff) | |
Refs #27025 -- Removed obsolete sqlite3 transaction management workaround for Python 3.6+.
Obsolete per https://bugs.python.org/issue10740#msg274816.
Diffstat (limited to 'django/db/transaction.py')
| -rw-r--r-- | django/db/transaction.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/transaction.py b/django/db/transaction.py index 39c3402925..901d8b62e7 100644 --- a/django/db/transaction.py +++ b/django/db/transaction.py @@ -173,8 +173,8 @@ class Atomic(ContextDecorator): connection.commit_on_exit = True connection.needs_rollback = False if not connection.get_autocommit(): - # Some database adapters (namely sqlite3) don't handle - # transactions and savepoints properly when autocommit is off. + # sqlite3 in Python < 3.6 doesn't handle transactions and + # savepoints properly when autocommit is off. # Turning autocommit back on isn't an option; it would trigger # a premature commit. Give up if that happens. if connection.features.autocommits_when_autocommit_is_off: |
