I made a few modifications to get it to work with Python 3 - it still works in Python 2.7 (and likely 2.6 as well, but I haven't tested that).
Ran it through 2to3, which switched the print statements to a function by adding parentheses, and switched xrange to range. Then marked five strings ('NONE', 'EXTH', 'BOOKMOBI', 'SRCS', and '\0') with a "b" to mark them as byte strings rather than Unicode.
|