Lines Matching refs:orig_modules
84 def _save_and_remove_module(name, orig_modules):
94 orig_modules[modname] = sys.modules[modname]
97 def _save_and_block_module(name, orig_modules):
103 orig_modules[name] = sys.modules[name]
128 orig_modules = {}
130 _save_and_remove_module(name, orig_modules)
133 _save_and_remove_module(fresh_name, orig_modules)
135 if not _save_and_block_module(blocked_name, orig_modules):
141 for orig_name, module in orig_modules.items():