1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 20:11:20 +00:00

target/descriptor: Cosmetic fixes

Fix typo and choose more descriptive variable name.
This commit is contained in:
Marc Bonnici 2020-04-16 22:01:24 +01:00 committed by setrofim
parent 84a9526dd3
commit 53faf159e8

View File

@ -637,7 +637,7 @@ class DefaultTargetDescriptor(TargetDescriptor):
def _override_params(self, params, overrides): # pylint: disable=no-self-use def _override_params(self, params, overrides): # pylint: disable=no-self-use
''' Returns a new list of parameters replacing any parameter with the ''' Returns a new list of parameters replacing any parameter with the
correesponding parameter in overrides''' corresponding parameter in overrides'''
if not overrides: if not overrides:
return params return params
param_map = {p.name: p for p in params} param_map = {p.name: p for p in params}
@ -647,11 +647,10 @@ class DefaultTargetDescriptor(TargetDescriptor):
# Return the list of overriden parameters # Return the list of overriden parameters
return list(param_map.values()) return list(param_map.values())
def _get_item(self, item_tuple): def _get_item(self, item_tuple):
cls, params, defaults = item_tuple cls_tuple, params, defaults = item_tuple
updated_params = self._override_params(params, defaults) updated_params = self._override_params(params, defaults)
return cls, updated_params return cls_tuple, updated_params
_adhoc_target_descriptions = [] _adhoc_target_descriptions = []