summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2012-11-20 16:29:54 +0000
committerbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2012-11-20 16:29:54 +0000
commit220721359b22654303dc0039fcd4f6ea5d304307 (patch)
tree9ab0496ad9f1815e02b56d3e721cac55d812a0a0
parentb68ace7ec73ee31d7c5ff22cf95e38904ee26c67 (diff)
downloadpyfilesystem-220721359b22654303dc0039fcd4f6ea5d304307.tar.gz
Allow wrapped_fs to be set to None when closed by superclass.
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@828 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r--fs/wrapfs/lazyfs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/wrapfs/lazyfs.py b/fs/wrapfs/lazyfs.py
index 0c1d2e9..16ab1a7 100644
--- a/fs/wrapfs/lazyfs.py
+++ b/fs/wrapfs/lazyfs.py
@@ -80,6 +80,8 @@ class LazyFS(WrapFS):
self._fsclass = fs
self._fsargs = []
self._fskwds = {}
+ elif fs is None:
+ del self.__dict__['wrapped_fs']
else:
self._fsclass = fs[0]
try: