[pypy-commit] pypy default: Make this function do what was intended.

alex_gaynor noreply at buildbot.pypy.org
Thu Jul 28 20:23:23 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r46055:2d6634aa99eb
Date: 2011-07-28 11:23 -0700
http://bitbucket.org/pypy/pypy/changeset/2d6634aa99eb/

Log:	Make this function do what was intended.

diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.py
--- a/pypy/rlib/jit.py
+++ b/pypy/rlib/jit.py
@@ -95,8 +95,7 @@
         d = {"func": func, "hint": hint}
         exec py.code.Source("\n".join(code)).compile() in d
         result = d["f"]
-        functools.wraps(func)(result)
-        return result
+        return functools.wraps(func)(result)
     return decorator
 
 def purefunction_promote(*args, **kwargs):


More information about the pypy-commit mailing list