Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r48035:37c28ac1e0f2
Date: 2011-10-13 22:38 +0200
http://bitbucket.org/pypy/pypy/changeset/37c28ac1e0f2/
Log: posix.read() return bytes
diff --git a/pypy/module/posix/interp_posix.py
b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -138,7 +138,7 @@
except OSError, e:
raise wrap_oserror(space, e)
else:
- return space.wrap(s)
+ return space.wrapbytes(s)
@unwrap_spec(fd=c_int, data='bufferstr')
def write(space, fd, data):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit