]> code.ossystems Code Review - openembedded-core.git/commit
Make DataSmart inherit the MutableMapping ABC
authorChris Larson <chris_larson@mentor.com>
Tue, 13 Apr 2010 01:56:25 +0000 (18:56 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:32 +0000 (14:46 +0000)
commit2dd8c01513bde8b30d27faf3a48f07c2e7e95ea7
tree1e7e81c65785e7c6b3afe83220d6c8c57793be12
parentebe3850beebb233b86bade9b0b93ed23bfd60e04
Make DataSmart inherit the MutableMapping ABC

Provide __len__, __iter__, and the getitem/setitem/delitem methods, and its
mixed in versions of keys(), values(), items(), etc will automatically behave,
making the DataSmart act more like a real mapping.

(Bitbake rev: 89b5351c656d263b0ce513cee043bc046d20a01e)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/data_smart.py