changeset 3866:44275a3436eb

caching: minor changes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 16 Jul 2008 22:48:33 +0200
parents 4ffd618f2826
children 3a81ee4b66e8 d2200a05c888
files MoinMoin/caching.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/caching.py	Wed Jul 16 22:09:12 2008 +0200
+++ b/MoinMoin/caching.py	Wed Jul 16 22:48:33 2008 +0200
@@ -248,6 +248,7 @@
             raise CacheError(str(err))
 
     def content(self):
+        # no file-like api yet, we implement it when we need it
         try:
             try:
                 self.open(mode='r')
@@ -266,7 +267,7 @@
         if not self.locking or self.locking and self.wlock.acquire(1.0):
             try:
                 try:
-                    os.remove(self._filename())
+                    os.remove(self._fname)
                 except OSError:
                     pass
             finally: