scripts: edtlib: Fix bad block indentation

Reported by pylint.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2019-09-05 21:53:20 +02:00 committed by Kumar Gala
commit cff38cf0ef

View file

@ -240,7 +240,7 @@ class EDT:
inherits = binding.pop("inherits") inherits = binding.pop("inherits")
if not isinstance(inherits, list) or \ if not isinstance(inherits, list) or \
not all(isinstance(elm, str) for elm in inherits): not all(isinstance(elm, str) for elm in inherits):
_err("malformed 'inherits:' in " + binding_path) _err("malformed 'inherits:' in " + binding_path)
fnames += inherits fnames += inherits
for fname in fnames: for fname in fnames:
@ -1339,8 +1339,8 @@ def _check_binding_properties(binding, binding_path):
.format(binding_path, prop_name)) .format(binding_path, prop_name))
if "const" in options and not isinstance(options["const"], (int, str)): if "const" in options and not isinstance(options["const"], (int, str)):
_err("const in {} for property ({}) is not a scalar" _err("const in {} for property '{}' is not a scalar"
.format(binding_path, prop_name)) .format(binding_path, prop_name))
def _translate(addr, node): def _translate(addr, node):