Commit 65057312 by rfkelly0

add some comments about __getattr__

parent 6b32b4f2
...@@ -228,6 +228,8 @@ class WrapFS(FS): ...@@ -228,6 +228,8 @@ class WrapFS(FS):
raise UnsupportedError("listxattrs") raise UnsupportedError("listxattrs")
def __getattr__(self,attr): def __getattr__(self,attr):
# These attributes can be used by the destructor, but may not be
# defined if there are errors in the constructor.
if attr == "closed": if attr == "closed":
return False return False
if attr == "wrapped_fs": if attr == "wrapped_fs":
......
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