From 7e1c7397553a0f8bdbd55ee18613cf5066cef09b Mon Sep 17 00:00:00 2001 From: Collin Watson Date: Sat, 14 Jan 2012 01:11:47 -0800 Subject: [PATCH] Ignore unicode strings as they are already decoded --- clint/textui/colored.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clint/textui/colored.py b/clint/textui/colored.py index 6b40942..5ff2b43 100644 --- a/clint/textui/colored.py +++ b/clint/textui/colored.py @@ -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