diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-12-07 12:15:25 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-12-07 12:15:25 -0500 |
commit | db03ee55726794834b414a574ece29efc9bb930e (patch) | |
tree | fa358977c6a30b3fd6ce937efd6c40dca81c967c | |
parent | bf09c5a2a1b3f65758fc77d73326050c8e58cb53 (diff) | |
download | python-setuptools-bitbucket-db03ee55726794834b414a574ece29efc9bb930e.tar.gz |
Use any on a generator instead
-rwxr-xr-x | setuptools/sandbox.py | 4 |
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""" |