[pypy-commit] pypy py3k: 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

antocuni noreply at buildbot.pypy.org
Wed Jun 6 15:16:01 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
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),


More information about the pypy-commit mailing list