Skip to content

Commit a6c89ca

Browse files
authored
replace funcy.cat with itertools.chain.from_iterable (#9279)
It's just an alias to the function from itertools.
1 parent 593f106 commit a6c89ca

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dvc/repo/status.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import logging
2-
from itertools import compress
3-
4-
from funcy.py3 import cat
2+
from itertools import chain, compress
53

64
from dvc.exceptions import InvalidArgumentError
75

@@ -29,7 +27,7 @@ def _joint_status(pairs):
2927

3028
def _local_status(self, targets=None, with_deps=False, recursive=False):
3129
targets = targets or [None]
32-
pairs = cat(
30+
pairs = chain.from_iterable(
3331
self.stage.collect_granular(t, with_deps=with_deps, recursive=recursive)
3432
for t in targets
3533
)

0 commit comments

Comments
 (0)