[Zope3-checkins] CVS: Zope3/src/transaction -
_transaction.py:1.1.2.9
Tim Peters
tim.one at comcast.net
Fri Mar 19 16:43:37 EST 2004
Update of /cvs-repository/Zope3/src/transaction
In directory cvs.zope.org:/tmp/cvs-serv25477/src/transaction
Modified Files:
Tag: jeremy-txn-branch
_transaction.py
Log Message:
_getResourceManagers(): Added some asserts, hoping to simplify later.
=== Zope3/src/transaction/_transaction.py 1.1.2.8 => 1.1.2.9 ===
--- Zope3/src/transaction/_transaction.py:1.1.2.8 Fri Mar 19 16:20:09 2004
+++ Zope3/src/transaction/_transaction.py Fri Mar 19 16:43:36 2004
@@ -231,6 +231,10 @@
# Merge all of _sub, _nonsub, and _resources.
d = dict(self._sub)
d.update(self._nonsub)
+ # XXX I think _sub and _nonsub are disjoint, and that
+ # XXX _resources is empty. If so, we can simplify this code.
+ assert len(d) == len(self._sub) + len(self._nonsub)
+ assert not self._resources
for rm in self._resources:
d[id(rm)] = rm
L = d.values()
More information about the Zope3-Checkins
mailing list