Commit 176942c6 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use dict.fromkeys

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2072 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 55e92444
...@@ -120,9 +120,8 @@ class PrimaryNotificationsHandler(BaseHandler): ...@@ -120,9 +120,8 @@ class PrimaryNotificationsHandler(BaseHandler):
app._cache_lock_acquire() app._cache_lock_acquire()
try: try:
# ZODB required a dict with oid as key, so create it # ZODB required a dict with oid as key, so create it
oids = {} oids = dict.fromkeys(oid_list, tid)
for oid in oid_list: for oid in oid_list:
oids[oid] = tid
if oid in app.mq_cache: if oid in app.mq_cache:
del app.mq_cache[oid] del app.mq_cache[oid]
db = app.getDB() db = app.getDB()
......
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