Merge pull request #190 from cbenhagen/patch-4
mpath of a six module can be an empty list
This commit is contained in:
commit
cbb5d76832
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,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…
Reference in a new issue