summaryrefslogtreecommitdiff
path: root/astroid/modutils.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2016-05-08 17:42:49 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2016-05-08 17:42:49 +0300
commit4bf4b0b7d16d1dc112560f93cfd1d1b5dd7c02f4 (patch)
treea2188f744a1f2144cb60a02a74c9155018a7dc25 /astroid/modutils.py
parent503927fab50e967dcef305d49692b077631e68b6 (diff)
downloadastroid-git-4bf4b0b7d16d1dc112560f93cfd1d1b5dd7c02f4.tar.gz
Improve the message.
Diffstat (limited to 'astroid/modutils.py')
-rw-r--r--astroid/modutils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py
index 6ffe249a..fdf26533 100644
--- a/astroid/modutils.py
+++ b/astroid/modutils.py
@@ -780,9 +780,7 @@ def _find_spec_with_path(search_path, modname, module_parts, processed, submodul
continue
return finder, spec
- raise ImportError('No module %s in %s' % ('.'.join(module_parts),
- '.'.join(processed)))
-
+ raise ImportError('No module named %s' % '.'.join(module_parts))
def _find_spec(modpath, path=None):