diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-27 14:27:29 +0800 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-31 12:56:28 +0800 |
commit | 329deed20f8f8d65288ff7ae01b12e69c66f08c7 (patch) | |
tree | c9c0b0f95b4495a626e86e49ec624d87abe7023c /astroid/modutils.py | |
parent | d172ace65755d9b1ad232791a461c1a811eb8698 (diff) | |
download | astroid-git-329deed20f8f8d65288ff7ae01b12e69c66f08c7.tar.gz |
Remove six from a couple of files
Diffstat (limited to 'astroid/modutils.py')
-rw-r--r-- | astroid/modutils.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py index 530bab5f..07e14aed 100644 --- a/astroid/modutils.py +++ b/astroid/modutils.py @@ -30,8 +30,6 @@ from distutils.errors import DistutilsPlatformError # weird path manipulations in order to get to the # real distutils module. -import six - from .interpreter._import import spec from .interpreter._import import util @@ -323,7 +321,7 @@ def modpath_from_file_with_callback(filename, extrapath=None, is_package_cb=None filename = os.path.expanduser(_path_from_filename(filename)) if extrapath is not None: - for path_ in six.moves.map(_canonicalize_path, extrapath): + for path_ in map(_canonicalize_path, extrapath): path = os.path.abspath(path_) if not path: continue @@ -333,7 +331,7 @@ def modpath_from_file_with_callback(filename, extrapath=None, is_package_cb=None if is_package_cb(path, submodpath[:-1]): return extrapath[path_].split('.') + submodpath - for path in six.moves.map(_canonicalize_path, sys.path): + for path in map(_canonicalize_path, sys.path): path = _cache_normalize_path(path) if not path: continue |