diff --git a/pathspec/util.py b/pathspec/util.py index 754bbdf..e8fe448 100644 --- a/pathspec/util.py +++ b/pathspec/util.py @@ -49,7 +49,7 @@ def iter_tree(root): abspath = os.path.abspath(parent) if real != abspath and real in abspath: # if real is a parent of current parent - raise util.RecursionError(real_path=real, first_path=memo[real], second_path=parent) + raise RecursionError(real_path=real, first_path=memo[real], second_path=parent) else: # not recursion, just a sideways link continue