Skip to content

Commit 6bc7652

Browse files
committed
[fix] getxattr must return bytes value
This was already broken in v2.0 in 2012!
1 parent 9159c7d commit 6bc7652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def getxattr(self, path, name, position=0):
6060
try:
6161
return attrs[name]
6262
except KeyError:
63-
return ''
63+
return b''
6464

6565
def listxattr(self, path):
6666
attrs = self.files[path].get('attrs', {})

0 commit comments

Comments
 (0)