Author: Philip Jenvey <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to