]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF #841977 - modulefinder fails to find extension modules in packages
authorThomas Heller <theller@ctypes.org>
Fri, 14 Nov 2003 10:23:03 +0000 (10:23 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 14 Nov 2003 10:23:03 +0000 (10:23 +0000)
commitfd630f54ccd7a03629eb14d24bd78b7872ab5f93
tree489d127e759cf283babb9fcd0c5ab0d9266dc320
parent8e81b7efad82ee2d9f4ad84d5e8ce51a0abb9fa2
SF #841977 - modulefinder fails to find extension modules in packages

The find_all_submodules() method in modulefinder only
looks for *.py, *.pyc, and *.pyo files.  Python
extension modules are only found if they are referenced
in import statements somewhere.

This patch uses the actual list from imp.get_suffixes().

Backported to release-maint23.
Lib/modulefinder.py