Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins.handlers: fix incorrect PyFilePlugin construction
Two things: 1. `submodule_search_locations` is expected to be a list, according to Python's documentation for `importlib.machinery.ModuleSpec`. 2. The new `module` being inserted into `sys.modules` before checking if its spec had a valid `loader` bothered me, so I reordered the steps.
- Loading branch information