[pypy-commit] pypy more-rposix: RPython really replaces time.time by the version in rtime.py:
amauryfa
noreply at buildbot.pypy.org
Mon May 4 00:55:04 CEST 2015
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: more-rposix
Changeset: r77020:e0a2cc6b6170
Date: 2015-05-04 00:54 +0200
http://bitbucket.org/pypy/pypy/changeset/e0a2cc6b6170/
Log: RPython really replaces time.time by the version in rtime.py: add
staticmethod() so that the Python function does not become a method!
diff --git a/rpython/jit/metainterp/jitprof.py b/rpython/jit/metainterp/jitprof.py
--- a/rpython/jit/metainterp/jitprof.py
+++ b/rpython/jit/metainterp/jitprof.py
@@ -51,7 +51,7 @@
class Profiler(BaseProfiler):
initialized = False
- timer = time.time
+ timer = staticmethod(time.time)
starttime = 0
t1 = 0
times = None
More information about the pypy-commit
mailing list