diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-06-17 10:55:09 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-06-17 10:55:09 -0500 |
commit | 3c86c861ab9665df0e502f250a7471d09240e413 (patch) | |
tree | 23121b96edc44065c47332bcc19218b6120160d8 /setuptools/compat.py | |
parent | 4d2396983ae8db3429a4e1a96f6112ef0c659422 (diff) | |
download | external_python_setuptools-3c86c861ab9665df0e502f250a7471d09240e413.tar.gz external_python_setuptools-3c86c861ab9665df0e502f250a7471d09240e413.tar.bz2 external_python_setuptools-3c86c861ab9665df0e502f250a7471d09240e413.zip |
Fix Python3 compatibility issue in filterfalse
--HG--
branch : distribute
extra : rebase_source : 71e3e89efe6483924a07e7f9819ee86f08dbf1f2
extra : histedit_source : fa75c7bc174b248c74da7b4efd5f6f05c36b6ae4
Diffstat (limited to 'setuptools/compat.py')
-rw-r--r-- | setuptools/compat.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/setuptools/compat.py b/setuptools/compat.py index 05417c6e..e2f64de2 100644 --- a/setuptools/compat.py +++ b/setuptools/compat.py @@ -1,4 +1,5 @@ import sys +import itertools if sys.version_info[0] < 3: PY3 = False @@ -30,6 +31,7 @@ if sys.version_info[0] < 3: from urllib2 import urlopen, HTTPError, URLError, unquote, splituser from urlparse import urlparse, urlunparse, urljoin xrange = xrange + filterfalse = itertools.ifilterfalse def exec_(code, globs=None, locs=None): if globs is None: @@ -72,6 +74,7 @@ else: from urllib.request import urlopen, url2pathname from urllib.parse import urlparse, urlunparse, unquote, splituser, urljoin xrange = range + filterfalse = itertools.filterfalse def execfile(fn, globs=None, locs=None): if globs is None: |