diff options
author | Austin Scola <austinscola@gmail.com> | 2022-06-26 17:04:34 -0400 |
---|---|---|
committer | Austin Scola <austinscola@gmail.com> | 2022-06-26 17:04:34 -0400 |
commit | 420d2afa0ebfa976a07dc0ff902c75547ab228c6 (patch) | |
tree | d765da5e528d65cd18f8efc0a8c2329227869deb | |
parent | cc80e6bbb0b98d71f44846d66a8e9439b60efa42 (diff) | |
download | gitpython-420d2afa0ebfa976a07dc0ff902c75547ab228c6.tar.gz |
Use generator instead of map
-rw-r--r-- | git/index/typ.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |