Author: Brian Kearns <bdkea...@gmail.com> Branch: refactor-buffer-api Changeset: r70945:9d4e8bf5ea02 Date: 2014-04-24 17:02 -0400 http://bitbucket.org/pypy/pypy/changeset/9d4e8bf5ea02/
Log: replace bufferstr in _multiprocessing diff --git a/pypy/module/_multiprocessing/interp_connection.py b/pypy/module/_multiprocessing/interp_connection.py --- a/pypy/module/_multiprocessing/interp_connection.py +++ b/pypy/module/_multiprocessing/interp_connection.py @@ -80,8 +80,9 @@ raise OperationError(space.w_IOError, space.wrap("connection is read-only")) - @unwrap_spec(buf='bufferstr', offset='index', size='index') - def send_bytes(self, space, buf, offset=0, size=PY_SSIZE_T_MIN): + @unwrap_spec(offset='index', size='index') + def send_bytes(self, space, w_buf, offset=0, size=PY_SSIZE_T_MIN): + buf = space.getarg_w('s*', w_buf).as_str() length = len(buf) self._check_writable(space) if offset < 0: @@ -149,7 +150,7 @@ w_pickled = space.call_method( w_picklemodule, "dumps", w_obj, w_protocol) - buf = space.bufferstr_w(w_pickled) + buf = space.str_w(w_pickled) self.do_send_string(space, buf, 0, len(buf)) def recv(self, space): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit