Commit 1615d757 authored by Vincent Pelletier's avatar Vincent Pelletier

No real need for a special case here.

Just don't use iterkeys on dictionaries, it's the default iterator anyway.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2799 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent de7ccf2d
...@@ -39,11 +39,7 @@ if needs_patch: ...@@ -39,11 +39,7 @@ if needs_patch:
serial = self._storage.tpc_finish(transaction, callback) serial = self._storage.tpc_finish(transaction, callback)
if serial is not None: if serial is not None:
assert isinstance(serial, str), repr(serial) assert isinstance(serial, str), repr(serial)
creating = self._creating for oid_iterator in (self._modified, self._creating):
# BBB: List on older ZODB, dict on newer
if isinstance(creating, dict):
creating = self._creating.iterkeys()
for oid_iterator in (self._modified, creating):
for oid in oid_iterator: for oid in oid_iterator:
obj = self._cache.get(oid, None) obj = self._cache.get(oid, None)
# Ignore missing objects and don't update ghosts. # Ignore missing objects and don't update ghosts.
......
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