fix: black

This commit is contained in:
egarette@silique.fr 2026-06-21 17:06:32 +02:00
parent a7752b5d0d
commit e0f8e55d40

View file

@ -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,11 +117,11 @@ 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
#self.manage_warnings()
# self.manage_warnings()
return False
def parse_family(
@ -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