Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r54149:53c5958727e6 Date: 2012-04-02 12:18 +0200 http://bitbucket.org/pypy/pypy/changeset/53c5958727e6/
Log: Translation fix. diff --git a/pypy/module/cpyext/slotdefs.py b/pypy/module/cpyext/slotdefs.py --- a/pypy/module/cpyext/slotdefs.py +++ b/pypy/module/cpyext/slotdefs.py @@ -173,7 +173,8 @@ check_num_args(space, w_args, 1) w_value, = space.fixedview(w_args) res = generic_cpy_call(space, func_target, w_self, w_value) - if rffi.cast(lltype.Signed, res) == -1: + res = rffi.cast(lltype.Signed, res) + if res == -1: space.fromcache(State).check_and_raise_exception(always=True) return space.wrap(bool(res)) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit