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): ...@@ -755,8 +755,7 @@ class Application(object):
# Update cache # Update cache
self._cache_lock_acquire() self._cache_lock_acquire()
try: try:
for oid in self.local_var.data_dict.iterkeys(): for oid, data in self.local_var.data_dict.iteritems():
data = self.local_var.data_dict[oid]
if data == '': if data == '':
if oid in self.mq_cache: if oid in self.mq_cache:
del self.mq_cache[oid] 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