()
| 94 | config.stash[assertstate_key].trace("installed rewrite import hook") |
| 95 | |
| 96 | def undo() -> None: |
| 97 | hook = config.stash[assertstate_key].hook |
| 98 | if hook is not None and hook in sys.meta_path: |
| 99 | sys.meta_path.remove(hook) |
| 100 | |
| 101 | config.add_cleanup(undo) |
| 102 | return hook |
no outgoing calls