]> 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:28:42 +0000 (10:28 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 14 Nov 2003 10:28:42 +0000 (10:28 +0000)
commitaaf1c8dc9e6a3c83b974ebea4b2e3929526689c3
tree1d3d0333126cfd3e2967bff98628dd478f6f832e
parent780c497972f367df86cf0f6f3b7c2aecf1e078d6
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 myself.
Lib/modulefinder.py