mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
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.
This commit is contained in:
parent
984556bc8e
commit
f141899dae
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user