mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
patman: Use items() to iterate over dictionaries
In python 3.x the iteritems() method has been removed from dictionaries, and the items() method does effectively the same thing. On python 2.x using items() is a little less efficient since it involves copying data, but as speed isn't a concern in this code switch to using items() anyway for simplicity. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
2ce7b21e6c
commit
c9eac38a25
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class _ProjectConfigParser(ConfigParser.SafeConfigParser):
|
|||
if not self.has_section(project_settings):
|
||||
self.add_section(project_settings)
|
||||
project_defaults = _default_settings.get(project_name, {})
|
||||
for setting_name, setting_value in project_defaults.iteritems():
|
||||
for setting_name, setting_value in project_defaults.items():
|
||||
self.set(project_settings, setting_name, setting_value)
|
||||
|
||||
def get(self, section, option, *args, **kwargs):
|
||||
|
|
Loading…
Reference in a new issue