diff options
author | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-11-20 02:24:23 +0000 |
---|---|---|
committer | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-11-20 02:24:23 +0000 |
commit | a5903c1399801540d31fcf7021c21acca87212a2 (patch) | |
tree | 8574d8f4f07b3cc2810842d87d9000bfdcf05eb4 /fs/xattrs.py | |
parent | f60e5db754cb60621e8210a0e9c4e891da0d3c7f (diff) | |
download | pyfilesystem-a5903c1399801540d31fcf7021c21acca87212a2.tar.gz |
insist on unicode paths throughout
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@272 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/xattrs.py')
-rw-r--r-- | fs/xattrs.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xattrs.py b/fs/xattrs.py index e0cbdb9..5921ad2 100644 --- a/fs/xattrs.py +++ b/fs/xattrs.py @@ -104,6 +104,7 @@ class SimulateXAttr(WrapFS): """Set an extended attribute on the given path.""" if not self.exists(path): raise ResourceNotFoundError(path) + key = unicode(key) attrs = self._get_attr_dict(path) attrs[key] = str(value) self._set_attr_dict(path, attrs) |