summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-02-05 02:08:00 +0100
committerThomas Bruederli <bruederli@kolabsys.com>2015-02-05 02:08:00 +0100
commitad96cdc0f3c258e37950bb655eaa7419f7560d56 (patch)
tree0d3fb21b47521828a1ebe799da70e3a56363a38f
parent078a561903078fb83d487891ee86d9ee6f2f0e4e (diff)
downloadpykolab-ad96cdc0f3c258e37950bb655eaa7419f7560d56.tar.gz
Always send unicode strings to stdout after change in [078a5619]
-rw-r--r--pykolab/cli/cmd_list_mailbox_metadata.py2
-rw-r--r--pykolab/cli/cmd_list_mailboxes.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/cli/cmd_list_mailbox_metadata.py b/pykolab/cli/cmd_list_mailbox_metadata.py
index e0b54fa..76528f7 100644
--- a/pykolab/cli/cmd_list_mailbox_metadata.py
+++ b/pykolab/cli/cmd_list_mailbox_metadata.py
@@ -83,7 +83,7 @@ def execute(*args, **kw):
metadata = []
folders = imap.list_folders(folder)
for folder in folders:
- print "Folder", folder.encode('utf-8')
+ print "Folder", folder
metadata = imap.get_metadata(folder)
diff --git a/pykolab/cli/cmd_list_mailboxes.py b/pykolab/cli/cmd_list_mailboxes.py
index 8cb60cc..61dfb08 100644
--- a/pykolab/cli/cmd_list_mailboxes.py
+++ b/pykolab/cli/cmd_list_mailboxes.py
@@ -89,6 +89,6 @@ def execute(*args, **kw):
for folder in folders:
if not conf.raw:
- print imap_utf7.decode(folder).encode('utf-8')
+ print imap_utf7.decode(folder)
else:
print folder