[pypy-svn] pypy jit-lsprofile: fix translation

cfbolz commits-noreply at bitbucket.org
Tue Jan 4 17:29:03 CET 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: jit-lsprofile
Changeset: r40388:d533fff410b6
Date: 2011-01-04 17:14 +0100
http://bitbucket.org/pypy/pypy/changeset/d533fff410b6/

Log:	fix translation

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
@@ -77,7 +77,7 @@
     l_w = []
     for v in values:
         if v.callcount != 0:
-            l_w.append(v.stats(space, factor))
+            l_w.append(v.stats(space, None, factor))
     return space.newlist(l_w)
 
 class ProfilerSubEntry(object):
@@ -109,7 +109,7 @@
         ProfilerSubEntry.__init__(self, frame)
         self.calls = {}
 
-    def stats(self, space, factor):
+    def stats(self, space, dummy, factor):
         if self.calls:
             w_sublist = space.newlist([sub_entry.stats(space, self, factor)
                                        for sub_entry in self.calls.values()])


More information about the Pypy-commit mailing list