(old, new)
| 61 | |
| 62 | |
| 63 | def replaceRootModule(old, new): |
| 64 | # Using global here, as this is really a singleton, in the form of a module, |
| 65 | # pylint: disable=global-statement |
| 66 | global root_modules |
| 67 | new_root_modules = OrderedSet() |
| 68 | |
| 69 | for module in root_modules: |
| 70 | new_root_modules.add(module if module is not old else new) |
| 71 | |
| 72 | assert len(root_modules) == len(new_root_modules) |
| 73 | |
| 74 | root_modules = new_root_modules |
| 75 | |
| 76 | |
| 77 | def getUncompiledModules(): |
no test coverage detected
searching dependent graphs…