aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]