Skip to content

Commit 969bbd5

Browse files
committed
-
1 parent 34b2bcc commit 969bbd5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

source_py3/python_toolbox/caching/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def remove_expired_entries():
102102
almost_cutting_point = \
103103
binary_search.binary_search_by_index(
104104
list(cached._cache.keys()),
105-
sorting_key_function,
106105
_get_now(),
106+
sorting_key_function,
107107
rounding=binary_search.LOW
108108
)
109109
if almost_cutting_point is not None:

source_py3/python_toolbox/combi/chain_space.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ def __getitem__(self, i):
7373
raise IndexError
7474
# Todo: Can't have a binary search here, it exhausts all the sequences.
7575
sequence_index = binary_search.binary_search_by_index(
76-
self.accumulated_lengths, lambda x: x,
77-
i, rounding=binary_search.LOW_IF_BOTH
76+
self.accumulated_lengths, i, rounding=binary_search.LOW_IF_BOTH
7877
)
7978
if sequence_index is None:
8079
raise IndexError

0 commit comments

Comments
 (0)