From f141899daed4c0bdf8fd40ae9ca477d90b0aec31 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Wed, 17 Jul 2019 11:42:41 +0100 Subject: [PATCH] target/KernelConfig: Ensure `get_config_name` is static `get_config_name` was previsouly treaded as a bound method so ensure that is defined as static as expected. --- devlib/target.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index ddf2f58..87669cd 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -2009,6 +2009,9 @@ class KernelConfig(object): This class does not provide a Mapping API and only return string values. """ + @staticmethod + def get_config_name(name): + return TypedKernelConfig.get_config_name(name) def __init__(self, text): # Expose typed_config as a non-private attribute, so that user code @@ -2017,7 +2020,6 @@ class KernelConfig(object): # Expose the original text for backward compatibility self.text = text - get_config_name = TypedKernelConfig.get_config_name not_set_regex = TypedKernelConfig.not_set_regex def iteritems(self):