Commit 19e84f58 authored by Vincent Pelletier's avatar Vincent Pelletier

Avoid creating a variable when not needed.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2425 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1660b9b7
......@@ -124,13 +124,12 @@ class PrimaryNotificationsHandler(BaseHandler):
try:
# ZODB required a dict with oid as key, so create it
mq_cache = app.mq_cache
oids = dict.fromkeys(oid_list, tid)
for oid in oid_list:
if oid in mq_cache:
del mq_cache[oid]
db = app.getDB()
if db is not None:
db.invalidate(tid, oids)
db.invalidate(tid, dict.fromkeys(oid_list, tid))
finally:
app._cache_lock_release()
......
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