Commit 0a533ceb by rfkelly0

trap lookups of known attributes in __getattr__

parent b8add3a0
...@@ -225,6 +225,10 @@ class WrapFS(FS): ...@@ -225,6 +225,10 @@ class WrapFS(FS):
raise UnsupportedError("listxattrs") raise UnsupportedError("listxattrs")
def __getattr__(self,attr): def __getattr__(self,attr):
if attr == "closed":
return False
if attr == "wrapped_fs":
return None
return getattr(self.wrapped_fs,attr) return getattr(self.wrapped_fs,attr)
@rewrite_errors @rewrite_errors
......
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