From 0db7a322a103b9886e74d9e017aa4a6298fdbe55 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 31 Aug 2017 10:53:20 +0200 Subject: [feat] make the cli default_printer more generic Now the default_printer can handle other types than dict, like lists or strings. --- src/leap/bitmask/cli/mail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/leap/bitmask/cli/mail.py') diff --git a/src/leap/bitmask/cli/mail.py b/src/leap/bitmask/cli/mail.py index 933f72a..0e8b658 100644 --- a/src/leap/bitmask/cli/mail.py +++ b/src/leap/bitmask/cli/mail.py @@ -73,7 +73,7 @@ SUBCOMMANDS: uid = self.cfg.get('bonafide', 'active', default=None) self.data += ['get_token', uid] - return self._send(command.default_dict_printer) + return self._send(command.default_printer) def add_msg(self, raw_args): parser = argparse.ArgumentParser( @@ -101,7 +101,7 @@ SUBCOMMANDS: self.data += ['add_msg', userid, mailbox, rawmsg] - return self._send(command.default_dict_printer) + return self._send(command.default_printer) def mixnet_status(self, raw_args): parser = argparse.ArgumentParser( @@ -120,4 +120,4 @@ SUBCOMMANDS: userid = self.cfg.get('bonafide', 'active', default=None) self.data += ['mixnet_status', userid, subargs.address[0]] - return self._send(command.default_dict_printer) + return self._send(command.default_printer) -- cgit v1.2.3