Merge pull request from cbenhagen/patch-4

mpath of a six module can be an empty list
This commit is contained in:
Richard Larkin 2016-11-26 16:35:33 +02:00 committed by GitHub
commit cbb5d76832

View file

@ -131,7 +131,7 @@ void load_custom_builtin_importer() {
" def find_module(self, fullname, mpath=None):\n" \ " def find_module(self, fullname, mpath=None):\n" \
" if '.' not in fullname:\n" \ " if '.' not in fullname:\n" \
" return\n" \ " return\n" \
" if mpath is None:\n" \ " if not mpath:\n" \
" return\n" \ " return\n" \
" part = fullname.rsplit('.')[-1]\n" \ " part = fullname.rsplit('.')[-1]\n" \
" fn = join(mpath[0], '{}.so'.format(part))\n" \ " fn = join(mpath[0], '{}.so'.format(part))\n" \