Commit ed01601f authored by Vincent Pelletier's avatar Vincent Pelletier

Use iteritems instead of iterkeys + getitem.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1890 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7a662dd7
......@@ -755,8 +755,7 @@ class Application(object):
# Update cache
self._cache_lock_acquire()
try:
for oid in self.local_var.data_dict.iterkeys():
data = self.local_var.data_dict[oid]
for oid, data in self.local_var.data_dict.iteritems():
if data == '':
if oid in self.mq_cache:
del self.mq_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