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:
|
||||
if isinstance(w, dict):
|
||||
msg, opt = next(iter(w.items()))
|
||||
warnings.append(_('{0}: {1}').format(opt.path, msg))
|
||||
warnings.append(_("{0}: {1}").format(opt.path, msg))
|
||||
else:
|
||||
warnings.append(w)
|
||||
self.dico["_warnings"] = warnings
|
||||
|
|
@ -117,7 +117,7 @@ class RougailOutputJson:
|
|||
for e in self.errors:
|
||||
if isinstance(e, dict):
|
||||
msg, opt = next(iter(e.items()))
|
||||
errors.append(_('{0}: {1}').format(opt.path, msg))
|
||||
errors.append(_("{0}: {1}").format(opt.path, msg))
|
||||
else:
|
||||
errors.append(e)
|
||||
self.dico["_errors"] = errors
|
||||
|
|
@ -139,7 +139,11 @@ class RougailOutputJson:
|
|||
parent,
|
||||
)
|
||||
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()
|
||||
else:
|
||||
subnamespace = namespace
|
||||
|
|
|
|||
Loading…
Reference in a new issue