summaryrefslogtreecommitdiff
path: root/astroid/modutils.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2014-11-17 00:36:14 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2014-11-17 00:36:14 +0200
commitdffe677e8caab3d52efa51b50db094eb9c6cc7f7 (patch)
tree194cf0e50ecb694659004cc04f8a4a769fa0edd5 /astroid/modutils.py
parentb1b9e5c5e9c12dbcfd6a12f7635f020e1df06a7b (diff)
downloadastroid-dffe677e8caab3d52efa51b50db094eb9c6cc7f7.tar.gz
Fix some NameErrors in modutils.
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 45fe898..03cd876 100644
--- a/astroid/modutils.py
+++ b/astroid/modutils.py
@@ -94,7 +94,7 @@ class NoSourceFile(Exception):
def _normalize_path(path):
return os.path.normcase(os.path.abspath(path))
-
+
_NORM_PATH_CACHE = {}
def _cache_normalize_path(path):
@@ -359,7 +359,7 @@ def get_module_part(dotted_name, context_file=None):
starti = 1
while parts[starti] == '': # for all further dots: change context
starti += 1
- context_file = dirname(context_file)
+ context_file = os.path.dirname(context_file)
for i in range(starti, len(parts)):
try:
file_from_modpath(parts[starti:i+1], path=path,
@@ -641,7 +641,7 @@ def _module_file(modpath, path=None):
# extend_path is called, search sys.path for module/packages
# of this name see pkgutil.extend_path documentation
path = [os.path.join(p, *imported) for p in sys.path
- if os.path.isdir(join(p, *imported))]
+ if os.path.isdir(os.path.join(p, *imported))]
else:
path = [mp_filename]
return mtype, mp_filename