Commit 2fbb136c by btimby

Allow wrapped_fs to be set to None when closed by superclass.

parent f49f0128
...@@ -80,6 +80,8 @@ class LazyFS(WrapFS): ...@@ -80,6 +80,8 @@ class LazyFS(WrapFS):
self._fsclass = fs self._fsclass = fs
self._fsargs = [] self._fsargs = []
self._fskwds = {} self._fskwds = {}
elif fs is None:
del self.__dict__['wrapped_fs']
else: else:
self._fsclass = fs[0] self._fsclass = fs[0]
try: try:
......
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