diff options
author | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-06-07 07:43:46 +0000 |
---|---|---|
committer | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-06-07 07:43:46 +0000 |
commit | 22d9c52f2c915d77f55fa7ddc5f4058187fafff0 (patch) | |
tree | 7fe4d607a66cecc5e408124d6fc119b7d0791a23 | |
parent | 67cf34af9e4adf4026a5c3010437ab24c64aea90 (diff) | |
download | pyfilesystem-git-22d9c52f2c915d77f55fa7ddc5f4058187fafff0.tar.gz |
insist that xattr values are always strings
-rw-r--r-- | fs/xattrs.py | 2 |
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): |