broadinstitute/xtermcolor — pull request #6 by ltworf (2012-11-22 17:35:15+00:00)
Title: Flattening structure

Since in python flat is better than nested (http://www.python.org/dev/peps/pep-0020/), and there is really no need at all of creating a class for this job, I've moved everything to top level.

Retaining the classes for backwards compatibility.

Also in the __init__ module export directly colorize so the following is possible:
import xtermcolor
xtermcolor.colorize('Test',0xff0000)

Which i think is much simpler than having to instantiate a class and keeping its reference around in the code.

I know It's quite a change but i hope it will be accepted.

Bye