From 41fc61154b0e7977ffbe3a45115b564c38aa87e3 Mon Sep 17 00:00:00 2001 From: rfkelly0 Date: Sun, 7 Jun 2009 07:43:46 +0000 Subject: insist that xattr values are always strings git-svn-id: http://pyfilesystem.googlecode.com/svn/branches/rfk-ideas@157 67cdc799-7952-0410-af00-57a81ceafa0f --- fs/xattrs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.1