summaryrefslogtreecommitdiff
path: root/astroid/modutils.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-07-02 16:46:25 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-07-02 16:46:25 +0300
commita17ea1fcc522e361803032ea59fd3bd01e562a07 (patch)
treec2cb50a5af7c9d639d45aa7b2802ef8f08b5c33a /astroid/modutils.py
parent1cd876fff7910221cd0f966f8aa13ff8af0073b2 (diff)
downloadastroid-a17ea1fcc522e361803032ea59fd3bd01e562a07.tar.gz
Fix pylint warnings.
Diffstat (limited to 'astroid/modutils.py')
-rw-r--r--astroid/modutils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py
index bd24d26..5a6c347 100644
--- a/astroid/modutils.py
+++ b/astroid/modutils.py
@@ -203,7 +203,7 @@ def load_module_from_modpath(parts, path=None, use_sys=1):
continue
if not _file and len(modpath) != len(parts):
raise ImportError('no module in %s' % '.'.join(parts[len(modpath):]))
- path = [os.path.dirname(_file)]
+ path = [os.path.dirname(_file)]
return module
@@ -486,7 +486,7 @@ def is_standard_module(modname, std_path=None):
# (sys and __builtin__ for instance)
if filename is None:
# we assume there are no namespaces in stdlib
- return not _is_namespace(modname)
+ return not _is_namespace(modname)
filename = _normalize_path(filename)
if filename.startswith(_cache_normalize_path(EXT_LIB_DIR)):
return False
@@ -613,7 +613,7 @@ def _module_file(modpath, path=None):
except AttributeError:
checkeggs = False
# pkg_resources support (aka setuptools namespace packages)
- if (_is_namespace(modpath[0]) and modpath[0] in sys.modules):
+ if _is_namespace(modpath[0]) and modpath[0] in sys.modules:
# setuptools has added into sys.modules a module object with proper
# __path__, get back information from there
module = sys.modules[modpath.pop(0)]