mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Don't search for *.so modules since we can't handle them!
This commit is contained in:
parent
619e1beda9
commit
011813444c
1 changed files with 1 additions and 2 deletions
|
@ -95,8 +95,7 @@ def scanfile(filename):
|
|||
|
||||
builtins = sys.builtin_module_names
|
||||
if 'sys' not in builtins: builtins.append('sys')
|
||||
# XXX this table may have to be changed depending on your platform:
|
||||
tails = ['.so', 'module.so', '.py', '.pyc']
|
||||
tails = ['.py', '.pyc']
|
||||
|
||||
def findmodule(modname, path = sys.path):
|
||||
if modname in builtins: return '<builtin>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue