Skip to content
Snippets Groups Projects
Commit 8c63a804 authored by Seblu's avatar Seblu
Browse files

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

parent 9947820e
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment