(self, fullname, path, target=None)
| 62 | self.__forbidden.add(module_name) |
| 63 | |
| 64 | def find_spec(self, fullname, path, target=None): |
| 65 | if path: |
| 66 | return |
| 67 | if fullname in self.__forbidden: |
| 68 | raise ImportError( |
| 69 | """ |
| 70 | Importing %s disabled by IPython, which has |
| 71 | already imported an Incompatible QT Binding: %s |
| 72 | """ |
| 73 | % (fullname, loaded_api()) |
| 74 | ) |
| 75 | |
| 76 | |
| 77 | ID = ImportDenier() |
no test coverage detected