summaryrefslogtreecommitdiff
path: root/fs/xattrs.py
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2011-01-05 08:15:24 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2011-01-05 08:15:24 +0000
commit7f9532d048e1d9cec02bfd6b414980a56151655b (patch)
tree49b408b2c518ea93af03fdc2afd4ec589541727d /fs/xattrs.py
parentcb43070ae02a85962682061c5c6b481a4def10a7 (diff)
downloadpyfilesystem-git-7f9532d048e1d9cec02bfd6b414980a56151655b.tar.gz
allow listdir/ilistdir to take non-keyword args
Diffstat (limited to 'fs/xattrs.py')
-rw-r--r--fs/xattrs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xattrs.py b/fs/xattrs.py
index 5ed2773..73b438b 100644
--- a/fs/xattrs.py
+++ b/fs/xattrs.py
@@ -144,14 +144,14 @@ class SimulateXAttr(WrapFS):
def _decode(self,path):
return path
- def listdir(self,path="",**kwds):
+ def listdir(self,path="",*args,**kwds):
"""Prevent .xattr from appearing in listings."""
- entries = self.wrapped_fs.listdir(path,**kwds)
+ entries = self.wrapped_fs.listdir(path,*args,**kwds)
return [e for e in entries if not self._is_attr_path(e)]
- def ilistdir(self,path="",**kwds):
+ def ilistdir(self,path="",*args,**kwds):
"""Prevent .xattr from appearing in listings."""
- for e in self.wrapped_fs.ilistdir(path,**kwds):
+ for e in self.wrapped_fs.ilistdir(path,*args,**kwds):
if not self._is_attr_path(e):
yield e