Skip to content

Commit

Permalink
better name for decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Dec 18, 2023
1 parent 689105a commit 9e70beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dedupe/branch_and_bound.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _score(partial: Iterable[Predicate]) -> float:
return sum(p.cover_count for p in partial)


def _suppress_recursion_wrapper(func):
def _suppress_recursion_error(func):
def wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
Expand All @@ -69,7 +69,7 @@ def _covered(partial: Partial) -> int:
else 0
)

@_suppress_recursion_wrapper
@_suppress_recursion_error
def walk(candidates: Cover, partial: Partial = ()) -> None:
nonlocal calls
nonlocal cheapest
Expand Down

0 comments on commit 9e70beb

Please sign in to comment.