[Neo-report] r2072 gregory - /trunk/neo/client/handlers/master.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 5 18:48:40 CEST 2010


Author: gregory
Date: Wed May  5 18:48:39 2010
New Revision: 2072

Log:
Use dict.fromkeys

Modified:
    trunk/neo/client/handlers/master.py

Modified: trunk/neo/client/handlers/master.py
==============================================================================
--- trunk/neo/client/handlers/master.py [iso-8859-1] (original)
+++ trunk/neo/client/handlers/master.py [iso-8859-1] Wed May  5 18:48:39 2010
@@ -120,9 +120,8 @@
         app._cache_lock_acquire()
         try:
             # ZODB required a dict with oid as key, so create it
-            oids = {}
+            oids = dict.fromkeys(oid_list, tid)
             for oid in oid_list:
-                oids[oid] = tid
                 if oid in app.mq_cache:
                     del app.mq_cache[oid]
             db = app.getDB()





More information about the Neo-report mailing list