Description

The main problem is we assume a loader has find_module method, which is only true if the loader and finder are a single class, which is in no way guaranteed. Brett Cannon has suggested an alternate implementation, which basically needs to re-implement the Python import machinery: ​http://paste.pocoo.org/show/209115/ (I'll turn it into a proper patch soonish)

(In [13082]) Fixed #13464 -- Reworked module_has_submodule to break the requirement for loader and finder to be the same class. Thanks to Alex Gaynor for the report and patch, and Brett Cannon for suggesting the approach.

(In [13085]) [1.1.X] Fixed #13464 -- Reworked module_has_submodule to break the requirement for loader and finder to be the same class. Thanks to Alex Gaynor for the report and patch, and Brett Cannon for suggesting the approach.