Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r77643:a680bce7a5b6
Date: 2015-05-28 13:58 +0200
http://bitbucket.org/pypy/pypy/changeset/a680bce7a5b6/
Log: simplify
diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -285,7 +285,6 @@
"""Apply PyPy-specific optimization suggestions on the 'config'.
The optimizations depend on the selected level and possibly on the backend.
"""
- config.__dict__['_level'] = level
# all the good optimizations for PyPy should be listed here
if level in ['2', '3', 'jit']:
config.objspace.std.suggest(withrangelist=True)
@@ -325,7 +324,7 @@
modules = working_modules.copy()
if config.translation.sandbox:
modules = default_modules
- if config._level != 'jit':
+ if not config.translation.jit:
del modules['_vmprof']
# ignore names from 'essential_modules', notably 'exceptions', which
# may not be present in config.objspace.usemodules at all
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit