Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r71129:75f2886305e0 Date: 2014-05-01 12:04 +0200 http://bitbucket.org/pypy/pypy/changeset/75f2886305e0/
Log: Translation fixes diff --git a/pypy/module/_lsprof/interp_lsprof.py b/pypy/module/_lsprof/interp_lsprof.py --- a/pypy/module/_lsprof/interp_lsprof.py +++ b/pypy/module/_lsprof/interp_lsprof.py @@ -208,6 +208,7 @@ def create_spec_for_function(space, w_func): + assert isinstance(w_func, Function) if w_func.w_module is not None: module = space.str_w(w_func.w_module) if module != '__builtin__': @@ -256,7 +257,7 @@ return w_frame # actually a PyCode object -def prepare_spec(w_arg): +def prepare_spec(space, w_arg): if isinstance(w_arg, Method): return (w_arg.w_function, w_arg.w_class) elif isinstance(w_arg, Function): @@ -374,7 +375,7 @@ self.current_context = context.previous def _enter_builtin_call(self, w_arg): - w_func, w_type = prepare_spec(w_arg) + w_func, w_type = prepare_spec(self.space, w_arg) entry = self._get_or_make_builtin_entry(w_func, w_type, True) self.current_context = ProfilerContext(self, entry) @@ -382,7 +383,7 @@ context = self.current_context if context is None: return - w_func, w_type = prepare_spec(w_arg) + w_func, w_type = prepare_spec(self.space, w_arg) try: entry = self._get_or_make_builtin_entry(w_func, w_type, False) except KeyError: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit