Skip to content

Commit 9e70beb

Browse files
committed
better name for decorator
1 parent 689105a commit 9e70beb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dedupe/branch_and_bound.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _score(partial: Iterable[Predicate]) -> float:
4444
return sum(p.cover_count for p in partial)
4545

4646

47-
def _suppress_recursion_wrapper(func):
47+
def _suppress_recursion_error(func):
4848
def wrapper(*args, **kwargs):
4949
try:
5050
return func(*args, **kwargs)
@@ -69,7 +69,7 @@ def _covered(partial: Partial) -> int:
6969
else 0
7070
)
7171

72-
@_suppress_recursion_wrapper
72+
@_suppress_recursion_error
7373
def walk(candidates: Cover, partial: Partial = ()) -> None:
7474
nonlocal calls
7575
nonlocal cheapest

0 commit comments

Comments
 (0)