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/framework.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/framework.py')
| -rw-r--r-- | mesonbuild/dependencies/framework.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/framework.py b/mesonbuild/dependencies/framework.py index 3a947f0c1..f28885148 100644 --- a/mesonbuild/dependencies/framework.py +++ b/mesonbuild/dependencies/framework.py @@ -115,5 +115,6 @@ class ExtraFrameworkDependency(ExternalDependency): def log_info(self) -> str: return self.framework_path or '' - def log_tried(self) -> str: + @staticmethod + def log_tried() -> str: return 'framework' |
