Commit 8c63a804 authored by Seblu's avatar Seblu
Browse files

fix bad default string to unicode in list command and tagdisplay func

parent 9947820e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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):
+1 −1
Original line number Diff line number Diff line
@@ -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: