Commit 887381bb authored by Tim Peters's avatar Tim Peters

Revert inappropriate checkin.

The new text wasn't more accurate than the text it
replaced.  I'll add more words, but on the 3.5 branch
(where it belongs), and then merge that to the trunk.
parent bd80ff45
...@@ -362,7 +362,7 @@ class Transaction(object): ...@@ -362,7 +362,7 @@ class Transaction(object):
elif deprecation_wng: elif deprecation_wng:
from ZODB.utils import deprecated37 from ZODB.utils import deprecated37
deprecated37("subtransactions are deprecated; use " deprecated37("subtransactions are deprecated; use "
"transaction.savepoint(optimistic=True) instead of " "transaction.savepoint() instead of "
"transaction.commit(1)") "transaction.commit(1)")
if self._savepoint2index: if self._savepoint2index:
...@@ -370,7 +370,7 @@ class Transaction(object): ...@@ -370,7 +370,7 @@ class Transaction(object):
if subtransaction: if subtransaction:
# TODO deprecate subtransactions # TODO deprecate subtransactions
self._subtransaction_savepoint = self.savepoint(optimistic=True) self._subtransaction_savepoint = self.savepoint(1)
return return
if self.status is Status.COMMITFAILED: if self.status is Status.COMMITFAILED:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment