mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
replace funcy.cat with itertools.chain.from_iterable (#9279)
It's just an alias to the function from itertools.
This commit is contained in:
+2
-4
@@ -1,7 +1,5 @@
|
||||
import logging
|
||||
from itertools import compress
|
||||
|
||||
from funcy.py3 import cat
|
||||
from itertools import chain, compress
|
||||
|
||||
from dvc.exceptions import InvalidArgumentError
|
||||
|
||||
@@ -29,7 +27,7 @@ def _joint_status(pairs):
|
||||
|
||||
def _local_status(self, targets=None, with_deps=False, recursive=False):
|
||||
targets = targets or [None]
|
||||
pairs = cat(
|
||||
pairs = chain.from_iterable(
|
||||
self.stage.collect_granular(t, with_deps=with_deps, recursive=recursive)
|
||||
for t in targets
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user