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

fijal at codespeak.net fijal at codespeak.net
Sun Jan 25 14:23:45 CET 2009


Author: fijal
Date: Sun Jan 25 14:23:42 2009
New Revision: 61332

Modified:
   pypy/trunk/pypy/module/_lsprof/interp_lsprof.py
Log:
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	Sun Jan 25 14:23:42 2009
@@ -161,7 +161,9 @@
 
 def create_spec(space, w_arg):
     if isinstance(w_arg, Method):
-        return "{method '%s' of '%s' object}" % (w_arg.w_function.name, w_arg.w_class.name)
+        w_function = w_arg.w_function
+        assert isinstance(w_function, Function)
+        return "{method '%s' of '%s' object}" % (w_function.name, space.str_w(space.str(w_arg.w_class)))
     elif isinstance(w_arg, Function):
         return '{%s function}' % (w_arg.name,)
     else:



More information about the Pypy-commit mailing list