summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgluster/gfapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gluster/gfapi.py b/gluster/gfapi.py
index bd6f240..5bbb8cb 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))