Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit 758cf81

Browse files
committed
ruff format
1 parent d6b542f commit 758cf81

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: python/selfie-lib/selfie_lib/ArrayMap.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ def _compare_normal(a, b) -> int:
1515
else:
1616
return 1
1717

18+
1819
def _compare_string_slash_first(a: str, b: str) -> int:
1920
return _compare_normal(a.replace("/", "\0"), b.replace("/", "\0"))
2021

22+
2123
def _binary_search(data, item) -> int:
22-
compare_func = _compare_string_slash_first if isinstance(item, str) else _compare_normal
24+
compare_func = (
25+
_compare_string_slash_first if isinstance(item, str) else _compare_normal
26+
)
2327
low, high = 0, len(data) - 1
2428
while low <= high:
2529
mid = (low + high) // 2

0 commit comments

Comments
 (0)