diff options
author | Carl Friedrich Bolz <cfbolz@gmx.de> | 2017-08-03 19:29:44 +0200 |
---|---|---|
committer | Carl Friedrich Bolz <cfbolz@gmx.de> | 2017-08-03 19:29:44 +0200 |
commit | 501116e88fdae121585ca002bc5f89e3d6877dff (patch) | |
tree | 42fab9371e5822924a2c4392232fa13d973f5cf5 /pypy/interpreter/pyframe.py | |
parent | remove the withcelldict option (translating without withcelldict is really not (diff) | |
download | pypy-501116e88fdae121585ca002bc5f89e3d6877dff.tar.gz pypy-501116e88fdae121585ca002bc5f89e3d6877dff.tar.bz2 pypy-501116e88fdae121585ca002bc5f89e3d6877dff.zip |
remove some more NOT_RPYTHON and replace them with the decorator
Diffstat (limited to 'pypy/interpreter/pyframe.py')
-rw-r--r-- | pypy/interpreter/pyframe.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pypy/interpreter/pyframe.py b/pypy/interpreter/pyframe.py index e2a8a55b48..0b47fe5cc2 100644 --- a/pypy/interpreter/pyframe.py +++ b/pypy/interpreter/pyframe.py @@ -7,6 +7,7 @@ from rpython.rlib.debug import make_sure_not_resized, check_nonneg from rpython.rlib.debug import ll_assert_not_none from rpython.rlib.jit import hint from rpython.rlib.objectmodel import instantiate, specialize, we_are_translated +from rpython.rlib.objectmodel import not_rpython from rpython.rlib.rarithmetic import intmask, r_uint from rpython.tool.pairtype import extendabletype @@ -144,8 +145,9 @@ class PyFrame(W_Root): return None return d.w_locals + @not_rpython def __repr__(self): - # NOT_RPYTHON: useful in tracebacks + # useful in tracebacks return "<%s.%s executing %s at line %s" % ( self.__class__.__module__, self.__class__.__name__, self.pycode, self.get_last_lineno()) |