From 4597f19625aceee9c5eb5d87d8c4e1717d2e1e1a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 20 Mar 2011 19:38:30 -0400 Subject: [PATCH] add split support to coloredstring --- clint/textui/colored.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clint/textui/colored.py b/clint/textui/colored.py index 7892ae5..f834f75 100644 --- a/clint/textui/colored.py +++ b/clint/textui/colored.py @@ -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)