mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
target/kernelconfig: Add alias for itteritems
Add an 'items' alias for itteritems to avoid confusion when iterating in different versions of Python.
This commit is contained in:
parent
ac19873423
commit
413e83f5d6
@ -1999,6 +1999,8 @@ class KernelConfig(object):
|
||||
for k, v in self.typed_config.items():
|
||||
yield (k, self.typed_config._val_to_str(v))
|
||||
|
||||
items = iteritems
|
||||
|
||||
def get(self, name, strict=False):
|
||||
if strict:
|
||||
val = self.typed_config[name]
|
||||
|
Loading…
x
Reference in New Issue
Block a user