[Erp5-report] r29640 - /erp5/trunk/products/ERP5Type/Cache.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 14 11:50:56 CEST 2009
Author: nicolas
Date: Wed Oct 14 11:50:52 2009
New Revision: 29640
URL: http://svn.erp5.org?rev=29640&view=rev
Log:
coding style
Modified:
erp5/trunk/products/ERP5Type/Cache.py
Modified: erp5/trunk/products/ERP5Type/Cache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Cache.py?rev=29640&r1=29639&r2=29640&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Cache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Cache.py [utf8] Wed Oct 14 11:50:52 2009
@@ -69,7 +69,7 @@
## separete local and shared cache plugins
self.quick_cache = self.cache_plugins[0]
try:
- self.shared_caches =self.cache_plugins[1:]
+ self.shared_caches = self.cache_plugins[1:]
except IndexError:
self.shared_caches = []
@@ -79,7 +79,7 @@
self._last_cache_expire_check_at = time()
for cp in self.cache_plugins:
l.append(cp.cache_expire_check_interval)
- l = filter(lambda x: x!=None and x!=0, l)
+ l = filter(lambda x: x is not None and x != 0, l)
self.cache_expire_check_interval = min(l)
def __call__(self, callable_object, cache_id, scope, cache_duration=None, *args, **kwd):
More information about the Erp5-report
mailing list