diff options
-rw-r--r-- | sos/plugins/__init__.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index 0c4b9b43..55c2d48a 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -195,10 +195,7 @@ class Plugin(object): return regex_findall(regex, fname) def _path_in_path_list(self, path, path_list): - for p in path_list: - if p in path: - return True - return False + return any(p in path for p in path_list) def copy_symlink(self, srcpath, sub=None): # the target stored in the original symlink |