aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/msubprojects.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-02-13 20:15:35 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-04-14 18:37:03 -0400
commitbb171c2dffd64724803c9a43d7b01e80c3a96064 (patch)
tree247a84fba58b9e24c9f05c78cf9d8164f8f2d7a1 /mesonbuild/msubprojects.py
parent906aec0df58c9b0fb411edca1934e7263e5d339f (diff)
downloadmeson-bb171c2dffd64724803c9a43d7b01e80c3a96064.zip
meson-bb171c2dffd64724803c9a43d7b01e80c3a96064.tar.gz
meson-bb171c2dffd64724803c9a43d7b01e80c3a96064.tar.bz2
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-xmesonbuild/msubprojects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/msubprojects.py b/mesonbuild/msubprojects.py
index 4ce2358..455b6e7 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: