Closed cgohlke closed 12 years ago
I am not sure whether someone is still using 2.5, which is why I didn't do this myself.
OK. FWIW, on Windows with msvc compilers, I was never able to build mahotas for Python 2.5.
FYI, I just committed something very similar (more hand-written, though).
I think it is Python 2.5 compatible: it uses stderr.write
instead of print and sys.exc_info()
to get the exception instead of of except type as name
.
Looking at the output of 2to3, the mahotas code could be made compatible with Python 2.6 to 3.3 with few changes. Most changes are xrange->range. A few import, print and raise statements need to be updated.
This patch works for me on win-amd64, Python 2.6 to 3.3. I could work on a pull request later if there is interest.