[pypy-svn] r61381 - pypy/trunk/pypy/module/_lsprof
Maciej Fijalkowski
fijall at gmail.com
Tue Jan 27 11:35:08 CET 2009
Oops, I have this in my wc, but forgot to commit
On Tue, Jan 27, 2009 at 9:31 AM, <antocuni at codespeak.net> wrote:
> Author: antocuni
> Date: Tue Jan 27 09:31:54 2009
> New Revision: 61381
>
> Modified:
> pypy/trunk/pypy/module/_lsprof/interp_lsprof.py
> Log:
> try to fix translation
>
>
>
> Modified: pypy/trunk/pypy/module/_lsprof/interp_lsprof.py
> ==============================================================================
> --- pypy/trunk/pypy/module/_lsprof/interp_lsprof.py (original)
> +++ pypy/trunk/pypy/module/_lsprof/interp_lsprof.py Tue Jan 27 09:31:54 2009
> @@ -162,8 +162,11 @@
> def create_spec(space, w_arg):
> if isinstance(w_arg, Method):
> w_function = w_arg.w_function
> + w_class = w_arg.w_class
> + w_class_name = space.getattr(w_class, space.wrap('__name__'))
> + class_name = space.str_w(w_class_name)
> assert isinstance(w_function, Function)
> - return "{method '%s' of '%s' objects}" % (w_function.name, w_arg.w_class.name)
> + return "{method '%s' of '%s' objects}" % (w_function.name, class_name)
> elif isinstance(w_arg, Function):
> module = space.str_w(w_arg.w_module)
> if module == '__builtin__':
> _______________________________________________
> pypy-svn mailing list
> pypy-svn at codespeak.net
> http://codespeak.net/mailman/listinfo/pypy-svn
>
More information about the Pypy-commit
mailing list