Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r55434:d3e7a7b78cd6
Date: 2012-06-06 15:02 +0200
http://bitbucket.org/pypy/pypy/changeset/d3e7a7b78cd6/

Log:    bah: we want to call bytes([n]), not bytes(n). space.call does the
        latter, because it receives a list of arguments, while
        space.call_function reveives *args

diff --git a/pypy/module/termios/interp_termios.py 
b/pypy/module/termios/interp_termios.py
--- a/pypy/module/termios/interp_termios.py
+++ b/pypy/module/termios/interp_termios.py
@@ -27,7 +27,7 @@
     cc = []
     for w_c in space.unpackiterable(w_cc):
         if space.is_true(space.isinstance(w_c, space.w_int)):
-            w_c = space.call(space.w_bytes, space.newlist([w_c]))
+            w_c = space.call_function(space.w_bytes, space.newlist([w_c]))
         cc.append(space.bytes_w(w_c))
     tup = (space.int_w(w_iflag), space.int_w(w_oflag),
            space.int_w(w_cflag), space.int_w(w_lflag),
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to