diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-06 22:59:39 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-06 22:59:39 -0500 |
commit | ab794ef306bcbe88c1fde6439ed02f889487c239 (patch) | |
tree | dd151680fc64be2266c88897bba6416ed926d9c1 /setuptools/command/easy_install.py | |
parent | 45bf0df21a53809a891ea5bb45e5407a2ebb5e02 (diff) | |
download | external_python_setuptools-ab794ef306bcbe88c1fde6439ed02f889487c239.tar.gz external_python_setuptools-ab794ef306bcbe88c1fde6439ed02f889487c239.tar.bz2 external_python_setuptools-ab794ef306bcbe88c1fde6439ed02f889487c239.zip |
Use filter(None) for brevity
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 4e841520..81573fea 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -435,7 +435,7 @@ class easy_install(Command): self.pth_file = None PYTHONPATH = os.environ.get('PYTHONPATH', '').split(os.pathsep) - if instdir not in map(normalize_path, [_f for _f in PYTHONPATH if _f]): + if instdir not in map(normalize_path, filter(None, PYTHONPATH)): # only PYTHONPATH dirs need a site.py, so pretend it's there self.sitepy_installed = True elif self.multi_version and not os.path.exists(pth_file): |