importer: reorder/tweak find_module() tests to cope with six.moves
The old hack on the master side we had is broken for some reason on 3.x. Instead tweak the client to be more selective: if a request is for a module within a package, the package must be loaded (in sys.modules), and its __loader__ must be us. Previously if the module didn't exist in sys.modules, we'd still try to fetch from the master, which doesn't appear to ever make sense.pull/295/head
parent
826c477061
commit
9fb2371d64
Loading…
Reference in New Issue