[pypy-commit] pypy default: warn when using DeprecationWarning
cfbolz
noreply at buildbot.pypy.org
Wed Mar 4 15:06:01 CET 2015
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch:
Changeset: r76241:d748a4ca2557
Date: 2015-03-04 15:05 +0100
http://bitbucket.org/pypy/pypy/changeset/d748a4ca2557/
Log: warn when using DeprecationWarning
diff --git a/rpython/rlib/jit.py b/rpython/rlib/jit.py
--- a/rpython/rlib/jit.py
+++ b/rpython/rlib/jit.py
@@ -96,6 +96,8 @@
""" Make sure the JIT traces inside decorated function, even
if the rest of the module is not visible to the JIT
"""
+ import warnings
+ warnings.warn("look_inside is deprecated", DeprecationWarning)
func._jit_look_inside_ = True
return func
More information about the pypy-commit
mailing list