Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
1e8cf435
Commit
1e8cf435
authored
Oct 05, 2005
by
Florent Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarified deprecation warning about txn.commit(1): the proper equivalent
now is txn.savepoint(optimistic=True).
parent
67b8b159
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transaction/_transaction.py
src/transaction/_transaction.py
+2
-2
No files found.
src/transaction/_transaction.py
View file @
1e8cf435
...
...
@@ -362,7 +362,7 @@ class Transaction(object):
elif
deprecation_wng
:
from
ZODB.utils
import
deprecated37
deprecated37
(
"subtransactions are deprecated; use "
"transaction.savepoint() instead of "
"transaction.savepoint(
optimistic=True
) instead of "
"transaction.commit(1)"
)
if
self
.
_savepoint2index
:
...
...
@@ -370,7 +370,7 @@ class Transaction(object):
if
subtransaction
:
# TODO deprecate subtransactions
self
.
_subtransaction_savepoint
=
self
.
savepoint
(
1
)
self
.
_subtransaction_savepoint
=
self
.
savepoint
(
optimistic
=
True
)
return
if
self
.
status
is
Status
.
COMMITFAILED
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment