dsc/bunch — pull request #7 by abadger (2012-11-09 22:40:20+00:00)
Title: Fix python version check

The recent merge for python3 compatibility contained some code that wasn't correct. Checking for the version of python that code is being run on should compare against sys.version_info. The current code compares against platform.version which is something else entirely.

A side note to the fix -- Function calls are expensive in python. If the places that python3_compat.u() are used turn out to be performance critical there might be noticable slowdowns. python-3.3 re-adds the u"I am string" syntax so one idea could be to punt this issue and say that if run on python3, bunch needs python-3.3 or greater.