Commit 41908b25 authored by Godefroid Chapelle's avatar Godefroid Chapelle

pop() does check existence of key

parent 111e1b21
......@@ -762,8 +762,7 @@ class Connection(ExportImport, object):
self._creating = {}
for oid in creating:
if oid in self._readCurrent:
self._readCurrent.pop(oid, None)
self._readCurrent.pop(oid, None)
o = self._cache.get(oid)
if o is not None:
del self._cache[oid]
......
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