[pypy-svn] r61381 - pypy/trunk/pypy/module/_lsprof

antocuni at codespeak.net antocuni at codespeak.net
Tue Jan 27 09:31:58 CET 2009


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__':



More information about the Pypy-commit mailing list