Lines Matching refs:orig_modules
87 def _save_and_remove_module(name, orig_modules):
97 orig_modules[modname] = sys.modules[modname]
100 def _save_and_block_module(name, orig_modules):
106 orig_modules[name] = sys.modules[name]
131 orig_modules = {}
133 _save_and_remove_module(name, orig_modules)
136 _save_and_remove_module(fresh_name, orig_modules)
138 if not _save_and_block_module(blocked_name, orig_modules):
144 for orig_name, module in orig_modules.items():