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:10:30 +0100
commit8098ba5de5aa2b74dfacfddc6b82dd2f8601c581 (patch)
tree495888deb506b2436a917a027f16a9ea93693c84
parent0a0a3dcf47a65ef29d8c1a9c2280e34c5c2a35e2 (diff)
downloadpykolab-8098ba5de5aa2b74dfacfddc6b82dd2f8601c581.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