Author: Armin Rigo <[email protected]>
Branch: reverse-debugger
Changeset: r89561:e90317857d27
Date: 2017-01-14 16:56 +0100
http://bitbucket.org/pypy/pypy/changeset/e90317857d27/

Log:    Need to force disabled modules to be false, else they may still be
        enabled by suggestions (and _vmprof is always suggested)

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -296,7 +296,8 @@
     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]
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to