aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces/email/interactive/libbe/utility.py
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/email/interactive/libbe/utility.py')
-rw-r--r--interfaces/email/interactive/libbe/utility.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/interfaces/email/interactive/libbe/utility.py b/interfaces/email/interactive/libbe/utility.py
index aafbf8d..1e43516 100644
--- a/interfaces/email/interactive/libbe/utility.py
+++ b/interfaces/email/interactive/libbe/utility.py
@@ -58,13 +58,10 @@ class Dir (object):
"A temporary directory for testing use"
def __init__(self):
self.path = tempfile.mkdtemp(prefix="BEtest")
- self.rmtree = shutil.rmtree # save local reference for __del__
self.removed = False
- def __del__(self):
- self.cleanup()
def cleanup(self):
if self.removed == False:
- self.rmtree(self.path)
+ shutil.rmtree(self.path)
self.removed = True
def __call__(self):
return self.path