add split support to coloredstring

This commit is contained in:
Kenneth Reitz
2011-03-20 19:38:30 -04:00
parent d647bd9792
commit 4597f19625
+3
View File
@@ -53,6 +53,9 @@ class ColoredString(object):
def __mul__(self, other):
return (self.color_str * other)
def split(self, x=' '):
return self.color_str.split(x)