diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-30 11:27:59 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-30 11:27:59 -0500 |
commit | d23dc249f5bb0609f39813ad95e8c8f0950a09af (patch) | |
tree | 33bce7dd5dab02892a2e35edaf4d79892bc370cd | |
parent | 68b7db5f7af782ca357da4000afd23ed15bcf1d2 (diff) | |
download | python-setuptools-bitbucket-d23dc249f5bb0609f39813ad95e8c8f0950a09af.tar.gz |
Always use Python 3 filter in pkg_resources
-rw-r--r-- | pkg_resources/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index 46f09a2d..0bd27d46 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -37,6 +37,7 @@ import plistlib import email.parser import tempfile import textwrap +import itertools from pkgutil import get_importer try: @@ -53,6 +54,7 @@ if PY3: if PY2: from urlparse import urlparse, urlunparse + filter = itertools.ifilter if PY3: string_types = str, |