View Single Post
Old 11-24-2012, 11:20 PM   #64
PeterHatch began at the beginning.
Posts: 10
Karma: 10
Join Date: Jan 2012
Device: Kindle
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.
Attached Files
File Type: zip (3.5 KB, 298 views)
PeterHatch is offline   Reply With Quote