sunlightlabs/name-cleaver — pull request #3 by edavis (2012-09-24 19:58:25+00:00)
Title: Add Python 2.6 compatibility

Not sure how useful this is to you all, but wanted to share anyway.

In Python 2.6, `re.sub` doesn't handle the 'flags' argument. This commit moves the ignore case flag to inside the regex to get around the issue.

Added the unittest2 stuff so the test suite can be easily ran from 2.6, too.

Test suite passes on both 2.7 and 2.6.