From 8c63a804cf73b996662f2f90d0cbafe9dc322cba Mon Sep 17 00:00:00 2001
From: Seblu <sebastien.luttringer@smartjog.com>
Date: Tue, 22 Feb 2011 11:36:22 +0100
Subject: [PATCH] fix bad default string to unicode in list command and
 tagdisplay func

---
 cccli/command/list.py | 2 +-
 cccli/tagdisplay.py   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cccli/command/list.py b/cccli/command/list.py
index ea5ff37..9c51855 100644
--- a/cccli/command/list.py
+++ b/cccli/command/list.py
@@ -54,7 +54,7 @@ class Command_list(TqlCommand):
                 line += "%s%s:%s%s "%(self.tdtc(t),
                                      t,
                                      self.tdc(t),
-                                     self.tdr(t, o.get(t, "")).ljust(tags[t]))
+                                     self.tdr(t, o.get(t, u"")).ljust(tags[t]))
             self.printer.out("%s%s"%(line, color["reset"]))
 
     def list_table(self, objs):
diff --git a/cccli/tagdisplay.py b/cccli/tagdisplay.py
index b45f89f..621385c 100644
--- a/cccli/tagdisplay.py
+++ b/cccli/tagdisplay.py
@@ -86,7 +86,7 @@ class TagDisplay(object):
         # check general options
         if bool(self.option.get("quotespace", False)):
             if re.search("\s", tagvalue) is not None:
-                tagvalue = "'%s'"%re.sub("'", "\'", tagvalue)
+                tagvalue = u"'%s'"%re.sub("'", "\'", tagvalue)
         # build list of matching pattern with tagname
         l = [ x for x in self.tagtype if fnmatch.fnmatch(tagname, x) ]
         if len(l) > 0:
-- 
GitLab