[pypy-commit] pypy py3k: disallow unicode
pjenvey
noreply at buildbot.pypy.org
Tue May 6 03:44:32 CEST 2014
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r71298:05a472020c13
Date: 2014-05-05 18:34 -0700
http://bitbucket.org/pypy/pypy/changeset/05a472020c13/
Log: disallow unicode
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
@@ -136,7 +136,7 @@
def write(space, fd, w_data):
"""Write a string to a file descriptor. Return the number of bytes
actually written, which may be smaller than len(data)."""
- data = space.getarg_w('s*', w_data)
+ data = space.getarg_w('y*', w_data)
try:
res = os.write(fd, data.as_str())
except OSError, e:
More information about the pypy-commit
mailing list