mirror of
https://github.com/kennethreitz/clint.git
synced 2026-06-05 23:00:18 +00:00
Ignore unicode strings as they are already decoded
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user