summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2013-07-19 05:33:10 +0000
committerbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2013-07-19 05:33:10 +0000
commit352be7b9fd264afd7faafffe5bdb27f44460f158 (patch)
tree1965e55769a710f989f211a526eff5eaff9060de
parent9cb63fd34ea6e10316128ce0205d04c91912b715 (diff)
downloadpyfilesystem-352be7b9fd264afd7faafffe5bdb27f44460f158.tar.gz
Don't store methods as attributes.
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@861 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r--fs/contrib/archivefs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/contrib/archivefs.py b/fs/contrib/archivefs.py
index afe6d9d..ab226db 100644
--- a/fs/contrib/archivefs.py
+++ b/fs/contrib/archivefs.py
@@ -165,7 +165,10 @@ class ArchiveFS(FS):
elif attr == 'mode':
info['st_mode'] = entry.mode
else:
- info[attr] = getattr(entry, attr)
+ value = getattr(entry, attr)
+ if callable(value):
+ continue
+ info[attr] = value
return info
def getsize(self, path):