(new_import)
| 39 | |
| 40 | @contextmanager |
| 41 | def replace_import_hook(new_import): |
| 42 | saved_import = builtin_mod.__import__ |
| 43 | builtin_mod.__import__ = new_import |
| 44 | try: |
| 45 | yield |
| 46 | finally: |
| 47 | builtin_mod.__import__ = saved_import |
| 48 | |
| 49 | def get_parent(globals, level): |
| 50 | """ |
no outgoing calls
no test coverage detected
searching dependent graphs…