summaryrefslogtreecommitdiffstats
path: root/gluster
diff options
context:
space:
mode:
authorThiago da Silva <thiago@redhat.com>2015-10-05 11:34:27 -0700
committerGerrit Code Review <review@dev.gluster.org>2015-10-05 11:34:27 -0700
commitc3bcd19f382ff116574dc11c9c7b2b3a094b7140 (patch)
tree17dac8feb1b8895f13f8ccb0ae944f510b87fbf1 /gluster
parentda1650ef882f7de4158118db71f7a2fdd196bc0a (diff)
parentd7e7b73006b8ca2b526111b54a5af0ee6290697a (diff)
Merge "Fix parsing of binary data as str"
Diffstat (limited to 'gluster')
-rwxr-xr-xgluster/gfapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gluster/gfapi.py b/gluster/gfapi.py
index 5af06e6..3a344c8 100755
--- a/gluster/gfapi.py
+++ b/gluster/gfapi.py
@@ -322,7 +322,7 @@ class File(object):
# In python 2.x, read() always returns a string. It's really upto
# the consumer to decode this string into whatever encoding it was
# written with.
- return rbuf.value[:ret]
+ return rbuf.raw[:ret]
elif ret < 0:
err = ctypes.get_errno()
raise OSError(err, os.strerror(err))