broadinstitute/xtermcolor — pull request #7 by ltworf (2012-11-22 18:59:39+00:00)
Title: Simplified API, bugfixes

- Raises exception if both backgrounds types are indicated
- De-nested 2 practically static functions (in python flat is better than nested)
- Simplified API (no class instantiation needed)
- Fix: black would evaluate as None and give an error

I made a bit of a mess with a branch. Anyway it's fully backwards compatible, can be used in a simpler way and fixes a couple of problems I've introduced with the previous pull request.

Bye