aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/sandbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/sandbox.py')
-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"""