Commits

Amaury Forgeot d'Arc  committed 37c28ac

posix.read() return bytes

  • Participants
  • Parent commits 6d32eeb
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/module/posix/interp_posix.py

     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):