apply black to the whole codebase.

This commit is contained in:
Goffi 2026-03-09 09:22:04 +01:00
commit 82e2c6efac

View file

@ -18,7 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Standard outputs"""
from libervia.cli.constants import Const as C
from libervia.frontends.tools import jid
from libervia.backend.tools.common.ansi import ANSI as A
@ -79,7 +78,7 @@ class Simple(object):
def messages(self, data):
# TODO: handle lang, and non chat message (normal, headline)
for mess_data in data:
(uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra) = (
uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra = (
mess_data
)
time_str = date_utils.date_fmt(
@ -143,9 +142,13 @@ class Json:
def dump(self, data):
if isinstance(data, str):
self.host.console.print_json(json=data, indent=None, highlight=False, default=str)
self.host.console.print_json(
json=data, indent=None, highlight=False, default=str
)
else:
self.host.console.print_json(data=data, indent=None, highlight=False, default=str)
self.host.console.print_json(
data=data, indent=None, highlight=False, default=str
)
def dump_pretty(self, data):
if isinstance(data, str):