mpath of a six module can be an empty list
This commit is contained in:
parent
843d688cf4
commit
73657fe3b1
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ void load_custom_builtin_importer() {
|
|||
" def find_module(self, fullname, mpath=None):\n" \
|
||||
" if '.' not in fullname:\n" \
|
||||
" return\n" \
|
||||
" if mpath is None:\n" \
|
||||
" if not mpath:\n" \
|
||||
" return\n" \
|
||||
" part = fullname.rsplit('.')[-1]\n" \
|
||||
" fn = join(mpath[0], '{}.so'.format(part))\n" \
|
||||
|
|
Loading…
Add table
Reference in a new issue