Commit c56bc5e2 by rfkelly0

WrapFS: don't pass through private attributes of the wrapped FS

parent 930a94dd
...@@ -255,6 +255,8 @@ class WrapFS(FS): ...@@ -255,6 +255,8 @@ class WrapFS(FS):
return False return False
if attr == "wrapped_fs": if attr == "wrapped_fs":
return None return None
if attr.startswith("_"):
raise AttributeError(attr)
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