summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-12-07 12:15:25 -0500
committerJason R. Coombs <jaraco@jaraco.com>2013-12-07 12:15:25 -0500
commitdb03ee55726794834b414a574ece29efc9bb930e (patch)
treefa358977c6a30b3fd6ce937efd6c40dca81c967c
parentbf09c5a2a1b3f65758fc77d73326050c8e58cb53 (diff)
downloadpython-setuptools-bitbucket-db03ee55726794834b414a574ece29efc9bb930e.tar.gz
Use any on a generator instead
-rwxr-xr-xsetuptools/sandbox.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index d50f1f66..50fb02a3 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -237,11 +237,11 @@ class DirectorySandbox(AbstractSandbox):
self._active = active
def _exempted(self, filepath):
- exception_matches = any(
+ exception_matches = (
filepath.startswith(exception)
for exception in self._exceptions
)
- return exception_matches
+ return any(exception_matches)
def _remap_input(self, operation, path, *args, **kw):
"""Called for path inputs"""