summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjortel <devnull@localhost>2010-12-07 15:41:50 +0000
committerjortel <devnull@localhost>2010-12-07 15:41:50 +0000
commit95fc1e243b97cddfff9afaaee09ba162079db2cc (patch)
tree69db996a9de587a79fe4aaa7e0d61c108df92f91
parentf16ee7666c2f9981916b63aefdb25530272ccd33 (diff)
downloadsuds-95fc1e243b97cddfff9afaaee09ba162079db2cc.tar.gz
Fix directory checking in FileCache.clear().
-rw-r--r--suds/__init__.py2
-rw-r--r--suds/cache.py7
2 files changed, 5 insertions, 4 deletions
diff --git a/suds/__init__.py b/suds/__init__.py
index c8711a1..73e64e2 100644
--- a/suds/__init__.py
+++ b/suds/__init__.py
@@ -27,7 +27,7 @@ import sys
#
__version__ = '0.4.1'
-__build__="(beta) R704-20101103"
+__build__="(beta) R705-20101207"
#
# Exceptions
diff --git a/suds/cache.py b/suds/cache.py
index 801c23c..8043c80 100644
--- a/suds/cache.py
+++ b/suds/cache.py
@@ -244,11 +244,12 @@ class FileCache(Cache):
def clear(self):
for fn in os.listdir(self.location):
- if os.path.isdir(fn):
+ path = os.path.join(self.location, fn)
+ if os.path.isdir(path):
continue
if fn.startswith(self.fnprefix):
- log.debug('deleted: %s', fn)
- os.remove(os.path.join(self.location, fn))
+ os.remove(path)
+ log.debug('deleted: %s', path)
def purge(self, id):
fn = self.__fn(id)