Commit 3915375e authored by Jason R. Coombs's avatar Jason R. Coombs

Use any on a generator instead

--HG--
extra : histedit_source : 7924e09d06d2f6db58371735314caeee77aa2d3d
parent f196854e
......@@ -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"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment