aboutsummaryrefslogtreecommitdiff
path: root/pypy/bin
diff options
context:
space:
mode:
authorTyler Wade <wayedt@gmail.com>2013-04-29 04:29:27 -0500
committerTyler Wade <wayedt@gmail.com>2013-04-29 04:29:27 -0500
commite21a78d7582a097825451f9914ada61b43f05eb4 (patch)
tree1ccf91490c954a4dcf4e460630f637789265bf3b /pypy/bin
parentMake -O set __debug__ to False and change JUMP_IF_NOT_DEBUG to a relative jump (diff)
downloadpypy-e21a78d7582a097825451f9914ada61b43f05eb4.tar.gz
pypy-e21a78d7582a097825451f9914ada61b43f05eb4.tar.bz2
pypy-e21a78d7582a097825451f9914ada61b43f05eb4.zip
Add caching for the debug flag for skipping asserts
Diffstat (limited to 'pypy/bin')
-rwxr-xr-xpypy/bin/pyinteractive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pypy/bin/pyinteractive.py b/pypy/bin/pyinteractive.py
index 487fe9c609..d282303b37 100755
--- a/pypy/bin/pyinteractive.py
+++ b/pypy/bin/pyinteractive.py
@@ -101,8 +101,8 @@ def main_(argv=None):
flags = list(sys.flags)
flags[6] = 2
sys.flags = type(sys.flags)(flags)
- import __builtin__
- setattr(__builtin__, '__debug__', False)
+ import __pypy__
+ __pypy__.set_debug(False)
""")
# call pypy_find_stdlib: the side-effect is that it sets sys.prefix and