From 413e83f5d632fd35aefac720bb48e55f90fa1d9e Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Wed, 30 Jan 2019 16:44:06 +0000 Subject: [PATCH] target/kernelconfig: Add alias for itteritems Add an 'items' alias for itteritems to avoid confusion when iterating in different versions of Python. --- devlib/target.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devlib/target.py b/devlib/target.py index c967ea5..a902917 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -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]