Commit fdeae943 by rfkelly0

adjust other classes now that FS has a base "close" method

parent 3b622389
......@@ -15,7 +15,7 @@ implementations of this interface such as:
"""
__version__ = "0.2.0a4"
__version__ = "0.2.0a5"
__author__ = "Will McGugan (will@willmcgugan.com)"
# 'base' imports * from 'path' and 'errors', so their
......
......@@ -488,7 +488,6 @@ class MountProcess(subprocess.Popen):
"""Perform the specified mount, return without waiting."""
(fs,path,opts) = pickle.loads(data)
opts["foreground"] = True
if hasattr(fs,"close"):
def unmount_callback():
fs.close()
opts["unmount_callback"] = unmount_callback
......@@ -506,7 +505,6 @@ class MountProcess(subprocess.Popen):
os.write(w,"S")
os.close(w)
opts["ready_callback"] = ready_callback
if hasattr(fs,"close"):
def unmount_callback():
fs.close()
opts["unmount_callback"] = unmount_callback
......
......@@ -49,8 +49,6 @@ class TempFS(OSFS):
self._cleaned = True
finally:
self._lock.release()
def __del__(self):
self.close()
super(TempFS,self).close()
......@@ -233,7 +233,6 @@ class WrapFS(FS):
@rewrite_errors
def close(self):
if hasattr(self.wrapped_fs,"close"):
self.wrapped_fs.close()
def wrap_fs_methods(decorator,cls=None,exclude=[]):
......
......@@ -116,9 +116,6 @@ class ZipFS(FS):
self.zf.close()
self.zf = _ExceptionProxy()
def __del__(self):
self.close()
@synchronize
def open(self, path, mode="r", **kwargs):
path = normpath(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment