[Zope-Checkins] CVS: ZODB3/ZODB - Connection.py:1.89 DB.py:1.49
Jeremy Hylton
jeremy@zope.com
Tue, 22 Apr 2003 14:05:07 -0400
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv6671/ZODB
Modified Files:
Connection.py DB.py
Log Message:
Python 2.1 compatibility.
=== ZODB3/ZODB/Connection.py 1.88 => 1.89 ===
--- ZODB3/ZODB/Connection.py:1.88 Tue Apr 8 11:55:44 2003
+++ ZODB3/ZODB/Connection.py Tue Apr 22 14:04:37 2003
@@ -14,6 +14,9 @@
"""Database connection support
$Id$"""
+
+from __future__ import nested_scopes
+
from cPickleCache import PickleCache
from POSException import ConflictError, ReadConflictError, TransactionError
from ExtensionClass import Base
=== ZODB3/ZODB/DB.py 1.48 => 1.49 ===
--- ZODB3/ZODB/DB.py:1.48 Tue Apr 8 11:55:44 2003
+++ ZODB3/ZODB/DB.py Tue Apr 22 14:04:37 2003
@@ -301,7 +301,7 @@
version=connection._version
# Update modified in version cache
# XXX must make this work with list or dict to backport to 2.6
- for oid in oids:
+ for oid in oids.keys():
h=hash(oid)%131
o=self._miv_cache.get(h, None)
if o is not None and o[0]==oid: del self._miv_cache[h]