Author: Alex Gaynor <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to