File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
source_py3/python_toolbox Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments