summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/cli/mail.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-08-31 10:53:20 +0200
committerRuben Pollan <meskio@sindominio.net>2017-08-31 12:56:43 +0200
commit0db7a322a103b9886e74d9e017aa4a6298fdbe55 (patch)
treead13ccc656fb73fb23d06e307032188c0e50afe8 /src/leap/bitmask/cli/mail.py
parent663c87c221c42e081b5947e298bc9f0541e6913a (diff)
[feat] make the cli default_printer more generic
Now the default_printer can handle other types than dict, like lists or strings.
Diffstat (limited to 'src/leap/bitmask/cli/mail.py')
-rw-r--r--src/leap/bitmask/cli/mail.py6
1 files changed, 3 insertions, 3 deletions
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)