diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2022-08-29 19:25:36 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-12 19:16:59 -0400 |
| commit | 7972c49bda5c2fcd6d647f45f5a5fa250f68f4b6 (patch) | |
| tree | 13040f231cd888cb40541e7c5a4e36ab92285d43 /mesonbuild/dependencies/platform.py | |
| parent | 36e7748d02ccd933f1ebe865564c7cee22fddbf6 (diff) | |
| download | meson-7972c49bda5c2fcd6d647f45f5a5fa250f68f4b6.tar.gz | |
dependencies: simplify log_tried into a staticmethod
It doesn't really need class instantiation to just know what type it is,
and this way we can get the information early if a dependency fails to
init.
Diffstat (limited to 'mesonbuild/dependencies/platform.py')
| -rw-r--r-- | mesonbuild/dependencies/platform.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/platform.py b/mesonbuild/dependencies/platform.py index 7759b0f93..1fd1d7880 100644 --- a/mesonbuild/dependencies/platform.py +++ b/mesonbuild/dependencies/platform.py @@ -54,5 +54,6 @@ class AppleFrameworks(ExternalDependency): def log_info(self) -> str: return ', '.join(self.frameworks) - def log_tried(self) -> str: + @staticmethod + def log_tried() -> str: return 'framework' |
