diff options
Diffstat (limited to 'rh/hooks.py')
-rw-r--r-- | rh/hooks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rh/hooks.py b/rh/hooks.py index b5350cd..491da91 100644 --- a/rh/hooks.py +++ b/rh/hooks.py @@ -171,7 +171,7 @@ class ExclusionScope(object): proj_dir: The relative path of the project. """ for exclusion_path in self._scope: - if isinstance(exclusion_path, re.Pattern): + if hasattr(exclusion_path, 'match'): if exclusion_path.match(proj_dir): return True elif fnmatch.fnmatch(proj_dir, exclusion_path): |