From 420d2afa0ebfa976a07dc0ff902c75547ab228c6 Mon Sep 17 00:00:00 2001 From: Austin Scola Date: Sun, 26 Jun 2022 17:04:34 -0400 Subject: Use generator instead of map --- git/index/typ.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git') diff --git a/git/index/typ.py b/git/index/typ.py index 11077454..ec7699e2 100644 --- a/git/index/typ.py +++ b/git/index/typ.py @@ -57,7 +57,7 @@ class BlobFilter(object): for pathlike in self.paths: path: Path = pathlike if isinstance(pathlike, Path) else Path(pathlike) # TODO: Change to use `PosixPath.is_relative_to` once Python 3.8 is no longer supported. - if all(map(lambda t: t[0] == t[1], zip(path.parts, blob_path.parts))): + if all(i == j for i, j in zip(path.parts, blob_path.parts)): return True return False -- cgit v1.2.1