[pypy-commit] pypy default: @analyzer_for should return the function unchanged

rlamy noreply at buildbot.pypy.org
Mon Oct 13 00:04:35 CEST 2014


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: 
Changeset: r73907:37141a493a83
Date: 2014-10-12 23:00 +0100
http://bitbucket.org/pypy/pypy/changeset/37141a493a83/

Log:	@analyzer_for should return the function unchanged

diff --git a/rpython/annotator/bookkeeper.py b/rpython/annotator/bookkeeper.py
--- a/rpython/annotator/bookkeeper.py
+++ b/rpython/annotator/bookkeeper.py
@@ -29,7 +29,7 @@
 def analyzer_for(func):
     def wrapped(ann_func):
         BUILTIN_ANALYZERS[func] = ann_func
-        return func
+        return ann_func
     return wrapped
 
 class Bookkeeper(object):


More information about the pypy-commit mailing list