fix: black
This commit is contained in:
parent
a7752b5d0d
commit
e0f8e55d40
1 changed files with 9 additions and 5 deletions
|
|
@ -105,7 +105,7 @@ class RougailOutputJson:
|
||||||
for w in self.warnings:
|
for w in self.warnings:
|
||||||
if isinstance(w, dict):
|
if isinstance(w, dict):
|
||||||
msg, opt = next(iter(w.items()))
|
msg, opt = next(iter(w.items()))
|
||||||
warnings.append(_('{0}: {1}').format(opt.path, msg))
|
warnings.append(_("{0}: {1}").format(opt.path, msg))
|
||||||
else:
|
else:
|
||||||
warnings.append(w)
|
warnings.append(w)
|
||||||
self.dico["_warnings"] = warnings
|
self.dico["_warnings"] = warnings
|
||||||
|
|
@ -117,7 +117,7 @@ class RougailOutputJson:
|
||||||
for e in self.errors:
|
for e in self.errors:
|
||||||
if isinstance(e, dict):
|
if isinstance(e, dict):
|
||||||
msg, opt = next(iter(e.items()))
|
msg, opt = next(iter(e.items()))
|
||||||
errors.append(_('{0}: {1}').format(opt.path, msg))
|
errors.append(_("{0}: {1}").format(opt.path, msg))
|
||||||
else:
|
else:
|
||||||
errors.append(e)
|
errors.append(e)
|
||||||
self.dico["_errors"] = errors
|
self.dico["_errors"] = errors
|
||||||
|
|
@ -139,7 +139,11 @@ class RougailOutputJson:
|
||||||
parent,
|
parent,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if namespace is None and self.support_namespace and option.group_type() is groups.namespace:
|
if (
|
||||||
|
namespace is None
|
||||||
|
and self.support_namespace
|
||||||
|
and option.group_type() is groups.namespace
|
||||||
|
):
|
||||||
subnamespace = option.name()
|
subnamespace = option.name()
|
||||||
else:
|
else:
|
||||||
subnamespace = namespace
|
subnamespace = namespace
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue