1
0
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:
Marc Bonnici 2019-01-30 16:44:06 +00:00 committed by setrofim
parent ac19873423
commit 413e83f5d6

View File

@ -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]