Ignore unicode strings as they are already decoded

This commit is contained in:
Collin Watson
2012-01-14 01:11:47 -08:00
parent ec46d65bd2
commit 7e1c739755
+1 -1
View File
@@ -62,7 +62,7 @@ class ColoredString(object):
def __unicode__(self):
value = self.color_str
if isinstance(value, basestring):
if isinstance(value, str):
return ('%s' % value).decode('utf8')
return value