I wrote my code to install Python 2.6.5, but now I need to run it in a cluster that has only 2.5.4, which was not on the horizon when I wrote the code. Hiding the code before 2.5 should not be too difficult, but I was wondering if there was a cheat sheet or an automatic tool that would help me with this. For some things, such as the with statement, the right __future__ import will do the trick, but not for some other things.
source share