summaryrefslogtreecommitdiff
path: root/fuse.py
diff options
context:
space:
mode:
authorTerence Honles <terence@honles.com>2012-05-07 15:13:26 -0700
committerTerence Honles <terence@honles.com>2012-05-07 15:16:23 -0700
commit2f0e5b5f1a5ee11a958acc8acdc47b187a76ec1b (patch)
treefbf7776931a7902505e84d9dfb7a038e0c667a0d /fuse.py
parent6b72a1437bba484b9a7c4ed2c8fbb94f085c9247 (diff)
downloadfusepy-2f0e5b5f1a5ee11a958acc8acdc47b187a76ec1b.tar.gz
updating readme/setup + pointing to new urls
- fixed 1 missing utf-8 decode
Diffstat (limited to 'fuse.py')
-rw-r--r--fuse.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/fuse.py b/fuse.py
index 2cea0c6..3b91740 100644
--- a/fuse.py
+++ b/fuse.py
@@ -1,4 +1,5 @@
-# Copyright (c) 2008 Giorgos Verigakis <verigak@gmail.com>
+# Copyright (c) 2012 Terence Honles <terence@honles.com> (maintainer)
+# Copyright (c) 2008 Giorgos Verigakis <verigak@gmail.com> (author)
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@@ -40,7 +41,9 @@ except ImportError:
newfunc.keywords = keywords
return newfunc
-if not hasattr(__builtins__, 'basestring'):
+try:
+ basestring
+except NameError:
basestring = str
class c_timespec(Structure):
@@ -543,10 +546,9 @@ class FUSE(object):
return retsize
def listxattr(self, path, namebuf, size):
- ret = '\x00'.join(self.operations('listxattr', path) or '') \
- .encode(self.encoding)
+ attrs = self.operations('listxattr', path.decode(self.encoding)) or ''
- buf = create_string_buffer(ret)
+ buf = create_string_buffer('\x00'.join(attrs).encode(self.encoding))
bufsize = len(buf)
if namebuf:
if bufsize > size: return -ERANGE