summaryrefslogtreecommitdiff
path: root/fs/contrib
diff options
context:
space:
mode:
authorbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2012-10-18 03:03:25 +0000
committerbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2012-10-18 03:03:25 +0000
commitb4e858df0e66579d1bf298e53dc13b00fa3bf90e (patch)
tree54e91c773eabe2ba3904a50aafed4f81ae450689 /fs/contrib
parentd913814dd969892f2e3025f160fe4e488b3a98b5 (diff)
downloadpyfilesystem-b4e858df0e66579d1bf298e53dc13b00fa3bf90e.tar.gz
Be less heavy-handed, setting the reference to None will do.
Ensure that pyfs file systems are closed when use with ftp and sftp daemons. git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@824 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/contrib')
-rw-r--r--fs/contrib/archivefs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/contrib/archivefs.py b/fs/contrib/archivefs.py
index 780f1bb..cb3b4af 100644
--- a/fs/contrib/archivefs.py
+++ b/fs/contrib/archivefs.py
@@ -187,7 +187,7 @@ class ArchiveMountFS(mountfs.MountFS):
def close(self):
# Close and delete references to any other fs instances.
self.rootfs.close()
- del self.rootfs
+ self.rootfs = None
super(ArchiveMountFS, self).close()
def ismount(self, path):