diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2022-02-13 20:15:35 -0500 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-04-14 18:37:03 -0400 |
| commit | bb171c2dffd64724803c9a43d7b01e80c3a96064 (patch) | |
| tree | 247a84fba58b9e24c9f05c78cf9d8164f8f2d7a1 /mesonbuild/msubprojects.py | |
| parent | 906aec0df58c9b0fb411edca1934e7263e5d339f (diff) | |
| download | meson-bb171c2dffd64724803c9a43d7b01e80c3a96064.tar.gz | |
pyupgrade --py37-plus
Some more old style code crept in again.
Additionally, pyupgrade learned to catch more if/elsed code based on the
python version, and delete it.
Diffstat (limited to 'mesonbuild/msubprojects.py')
| -rwxr-xr-x | mesonbuild/msubprojects.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/msubprojects.py b/mesonbuild/msubprojects.py index 4ce23586d..455b6e72d 100755 --- a/mesonbuild/msubprojects.py +++ b/mesonbuild/msubprojects.py @@ -52,10 +52,10 @@ ALL_TYPES_STRING = ', '.join(ALL_TYPES) def read_archive_files(path: Path, base_path: Path) -> T.Set[Path]: if path.suffix == '.zip': with zipfile.ZipFile(path, 'r') as zip_archive: - archive_files = set(base_path / i.filename for i in zip_archive.infolist()) + archive_files = {base_path / i.filename for i in zip_archive.infolist()} else: with tarfile.open(path) as tar_archive: # [ignore encoding] - archive_files = set(base_path / i.name for i in tar_archive) + archive_files = {base_path / i.name for i in tar_archive} return archive_files class Logger: |
