From a6c89cac8d82b6836acd068d0d02c26b79c851f5 Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Wed, 29 Mar 2023 20:56:26 +0545 Subject: [PATCH] replace funcy.cat with itertools.chain.from_iterable (#9279) It's just an alias to the function from itertools. --- dvc/repo/status.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dvc/repo/status.py b/dvc/repo/status.py index b5deced3e..0bffc50f7 100644 --- a/dvc/repo/status.py +++ b/dvc/repo/status.py @@ -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 )