aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2017-01-14 16:56:08 +0100
committerArmin Rigo <arigo@tunes.org>2017-01-14 16:56:08 +0100
commite9c0e1d976ccdf7caa95a7a9432ca5868405fca2 (patch)
tree6a8b82ba4a15c84a248232b78ea935844a3158be
parenthg merge default (diff)
downloadpypy-RevDB-pypy2.7-v5.6.1.tar.gz
pypy-RevDB-pypy2.7-v5.6.1.tar.bz2
pypy-RevDB-pypy2.7-v5.6.1.zip
Need to force disabled modules to be false, else they may still beRevDB-pypy2.7-v5.6.1
enabled by suggestions (and _vmprof is always suggested)
-rw-r--r--pypy/config/pypyoption.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
index 6be027a496..2d3b65b342 100644
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -296,7 +296,8 @@ def enable_allworkingmodules(config):
if config.translation.sandbox:
modules = default_modules
if config.translation.reverse_debugger:
- modules -= reverse_debugger_disable_modules
+ for mod in reverse_debugger_disable_modules:
+ setattr(config.objspace.usemodules, mod, False)
# ignore names from 'essential_modules', notably 'exceptions', which
# may not be present in config.objspace.usemodules at all
modules = [name for name in modules if name not in essential_modules]