aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/__init__.py2
-rw-r--r--mesonbuild/modules/gnome.py2
-rw-r--r--mesonbuild/modules/python.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/modules/__init__.py b/mesonbuild/modules/__init__.py
index a83e9da..e2ed38c 100644
--- a/mesonbuild/modules/__init__.py
+++ b/mesonbuild/modules/__init__.py
@@ -237,7 +237,7 @@ def is_module_library(fname):
if hasattr(fname, 'fname'):
fname = fname.fname
suffix = fname.split('.')[-1]
- return suffix in ('gir', 'typelib')
+ return suffix in {'gir', 'typelib'}
class ModuleReturnValue:
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index f0ef03c..1d5e746 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -874,7 +874,7 @@ class GnomeModule(ExtensionModule):
for girtarget in girtargets:
for lang, compiler in girtarget.compilers.items():
# XXX: Can you use g-i with any other language?
- if lang in ('c', 'cpp', 'objc', 'objcpp', 'd'):
+ if lang in {'c', 'cpp', 'objc', 'objcpp', 'd'}:
ret.append((lang, compiler))
break
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index 71a25d5..6bbfdb9 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -194,7 +194,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase):
return None
elif self.platform == 'win32':
return '32'
- elif self.platform in ('win64', 'win-amd64'):
+ elif self.platform in {'win64', 'win-amd64'}:
return '64'
mlog.log(f'Unknown Windows Python platform {self.platform!r}')
return None
@@ -727,7 +727,7 @@ class PythonModule(ExtensionModule):
# on various platforms, let's not give up just yet, if an executable
# named python is available and has a compatible version, let's use
# it
- if not python.found() and name_or_path in ['python2', 'python3']:
+ if not python.found() and name_or_path in {'python2', 'python3'}:
python = PythonExternalProgram('python')
if python.found():