astropy/astropy — pull request #417 by adrn (2012-10-10 12:54:11+00:00)
Title: Separate color printing from coloring text

This is the implementation of #413 -- I've just separated the code that wraps strings with the ANSI color codes from the code that actually prints to the terminal. @mdboom mentioned that this was an implementation choice (see #101) but I think it's fine to have a separate "private" method to do this.