scripts: edtlib: Fix bad block indentation
Reported by pylint. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
8f22529e74
commit
cff38cf0ef
1 changed files with 3 additions and 3 deletions
|
@ -240,7 +240,7 @@ class EDT:
|
|||
inherits = binding.pop("inherits")
|
||||
if not isinstance(inherits, list) or \
|
||||
not all(isinstance(elm, str) for elm in inherits):
|
||||
_err("malformed 'inherits:' in " + binding_path)
|
||||
_err("malformed 'inherits:' in " + binding_path)
|
||||
fnames += inherits
|
||||
|
||||
for fname in fnames:
|
||||
|
@ -1339,8 +1339,8 @@ def _check_binding_properties(binding, binding_path):
|
|||
.format(binding_path, prop_name))
|
||||
|
||||
if "const" in options and not isinstance(options["const"], (int, str)):
|
||||
_err("const in {} for property ({}) is not a scalar"
|
||||
.format(binding_path, prop_name))
|
||||
_err("const in {} for property '{}' is not a scalar"
|
||||
.format(binding_path, prop_name))
|
||||
|
||||
|
||||
def _translate(addr, node):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue