apply black to the whole codebase.
This commit is contained in:
parent
420df3340d
commit
82e2c6efac
1 changed files with 175 additions and 448 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue