mher/flower — pull request #126 by adamgreig (2013-09-23 12:10:15+00:00)
Title: Python 3 Compatibility

I had a quick go at adding Python 3 compatibility to Flower. If that's not a thing you want right now then feel free to disregard!

This doesn't add any new dependencies and passes all the tests on Python 2.6.8, 2.7.3 and 3.3.2. I'm not sure it will work on 3.0/.1/.2 but in theory supporting those is kind of pointless anyway.

`requirements.txt` is a bit annoying - Python 3 seems to want `anyjson` while Python 2 needs `unittest2`, which doesn't build for Python 3. I've taken `unittest2` out of `requirements.txt` as it's only needed for running tests and it's pretty clear from the test error that it needs to get installed for Python 2.

Using `items` instead of `iteritems` in the templates might be a bit of a shame on Python 2 but I'm sure what any good alternatives would be. Probably not the end of the world though.