diff MoinMoin/caching.py @ 931:141083b64fb1

whitespace and minor style changes only
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 08 Jul 2006 21:21:36 +0200
parents 6cc24670fd0f
children 6bc162aba29d
line wrap: on
line diff
--- a/MoinMoin/caching.py	Sat Jul 08 20:42:32 2006 +0200
+++ b/MoinMoin/caching.py	Sat Jul 08 21:21:36 2006 +0200
@@ -13,7 +13,7 @@
 locking = 1
 if locking:
     from MoinMoin.util import lock
-    
+
 class CacheEntry:
     def __init__(self, request, arena, key, scope='page_or_wiki', do_locking=True):
         """ init a cache entry
@@ -49,7 +49,7 @@
             self.lock_dir = os.path.join(self.arena_dir, '__lock__')
             self.rlock = lock.ReadLock(self.lock_dir, 60.0)
             self.wlock = lock.WriteLock(self.lock_dir, 60.0)
-        
+
     def _filename(self):
         return os.path.join(self.arena_dir, self.key)
 
@@ -73,7 +73,7 @@
             return 1
 
         needsupdate = ftime > ctime
-        
+
         # if a page depends on the attachment dir, we check this, too:
         if not needsupdate and attachdir:
             try:
@@ -81,7 +81,7 @@
             except os.error:
                 ftime2 = 0
             needsupdate = ftime2 > ctime
-                
+
         return needsupdate
 
     def copyto(self, filename):