diff options
Diffstat (limited to 'setuptools/sandbox.py')
-rwxr-xr-x | setuptools/sandbox.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py index 49c4ea93..d50f1f66 100755 --- a/setuptools/sandbox.py +++ b/setuptools/sandbox.py @@ -237,8 +237,11 @@ class DirectorySandbox(AbstractSandbox): self._active = active def _exempted(self, filepath): - exception_matches = map(filepath.startswith, self._exceptions) - return True in exception_matches + exception_matches = any( + filepath.startswith(exception) + for exception in self._exceptions + ) + return exception_matches def _remap_input(self, operation, path, *args, **kw): """Called for path inputs""" |