diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2016-12-18 12:11:50 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-12-18 12:11:50 +0200 |
commit | 9e65cf919eaeba6fb5c4e9b823b9d429be7fa0eb (patch) | |
tree | fca28baa24b64e7d62983bf1de41341b35cf5a19 | |
parent | cc608e6488dbddd3274b406bde4a3a75f79553dd (diff) | |
download | astroid-git-9e65cf919eaeba6fb5c4e9b823b9d429be7fa0eb.tar.gz |
Force the path to be a list when passing it to find_module.
-rw-r--r-- | astroid/interpreter/_import/spec.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/astroid/interpreter/_import/spec.py b/astroid/interpreter/_import/spec.py index 97654fab..73b273dc 100644 --- a/astroid/interpreter/_import/spec.py +++ b/astroid/interpreter/_import/spec.py @@ -84,7 +84,8 @@ class ImpFinder(Finder): def find_module(self, modname, module_parts, processed, submodule_path): try: - stream, mp_filename, mp_desc = imp.find_module(modname, submodule_path) + stream, mp_filename, mp_desc = imp.find_module( + modname, list(submodule_path)) except ImportError: return None |