From 3915375e6b94d7f41be271aec3c3e37efcba8c27 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 7 Dec 2013 12:15:25 -0500 Subject: Use any on a generator instead --HG-- extra : histedit_source : 7924e09d06d2f6db58371735314caeee77aa2d3d --- setuptools/sandbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setuptools/sandbox.py') 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""" -- cgit v1.2.1