summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-06-07 07:43:46 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-06-07 07:43:46 +0000
commit41fc61154b0e7977ffbe3a45115b564c38aa87e3 (patch)
tree7fe4d607a66cecc5e408124d6fc119b7d0791a23
parent95fce0c619627c1501a071a6640b8bc3f7e6880f (diff)
downloadpyfilesystem-41fc61154b0e7977ffbe3a45115b564c38aa87e3.tar.gz
insist that xattr values are always strings
git-svn-id: http://pyfilesystem.googlecode.com/svn/branches/rfk-ideas@157 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r--fs/xattrs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xattrs.py b/fs/xattrs.py
index 79330c1..27a8abc 100644
--- a/fs/xattrs.py
+++ b/fs/xattrs.py
@@ -97,7 +97,7 @@ class SimulateXAttr(WrapFS):
if not self.exists(path):
raise ResourceNotFoundError(path)
attrs = self._get_attr_dict(path)
- attrs[key] = value
+ attrs[key] = str(value)
self._set_attr_dict(path, attrs)
def getxattr(self, path, key, default=None):