Fix a bug that broke Python 2.5 support.