Skip to content

Commit b9fc3b7

Browse files
committed
simplify
1 parent a28d906 commit b9fc3b7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

fsspec/parquet.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,4 @@ def _parquet_byte_ranges(
595595

596596

597597
def _cmp(name, column_set):
598-
lname = len(name)
599-
return any(
600-
(len(_) >= lname and all(a == b for a, b in zip(name, _)))
601-
or (len(_) < lname and all(a == b for a, b in zip(_, name)))
602-
for _ in column_set
603-
)
598+
return any(all(a == b for a, b in zip(name, _)) for _ in column_set)

0 commit comments

Comments
 (0)