When I try to run the python koans, I don't get the colors, instead I get the ANSI color codes. I want to get the colors. It seems to be using colorama under the hood. I try to run colorama sample code in the interpeter and get syntax errors and/or assert errors.
Second if can't fix first: How do I get to strip out the ansi color codes. I tried various values of strip=True开发者_StackOverflow中文版, and Convert=False to no avail.
Please help.
Sorry about that!
The ansi colors are a very recent feature, and I haven't got around to adding a command line option to turn it off yet. Its coming very soon though!
In the meantime taking a slightly older version would get around the problem. Here's how you can do it through mercurial:
hg clone https://gregmalcolm@bitbucket.org/gregmalcolm/python_koans
hg update -r 80
and this should work for git:
git clone http://github.com/gregmalcolm/python_koans
git checkout -b nocolor a410591b5aaeec57a4a8
This is actually the first complaint I've had of the color not working. What OS/terminal are you running from?
精彩评论