View Single Post
Old 02-18-2009, 06:35 PM   #60
Jean
Zealot
Jean ought to be getting tired of karma fortunes by now.Jean ought to be getting tired of karma fortunes by now.Jean ought to be getting tired of karma fortunes by now.Jean ought to be getting tired of karma fortunes by now.Jean ought to be getting tired of karma fortunes by now.Jean ought to be getting tired of karma fortunes by now.Jean ought to be getting tired of karma fortunes by now.Jean ought to be getting tired of karma fortunes by now.Jean ought to be getting tired of karma fortunes by now.Jean ought to be getting tired of karma fortunes by now.Jean ought to be getting tired of karma fortunes by now.
 
Posts: 109
Karma: 1069296
Join Date: Dec 2007
Location: Washington State
Device: Kindle 1 / Kindle Fire / Kindle Paperwhite / Kobo Libra Colour
I was trying to use the script shown in post #11:

def __init__(self, data_file, pid):
### BEGIN NEW CODE ###
# Calculate PID checksum if just the first 8 chars are specified
if len(pid) == 8:
pid = checksumPid(pid)
print "Full PID is %s" % pid
### END NEW CODE ###
if checksumPid(pid[0:-2]) != pid:
raise DrmException("invalid PID checksum")
pid = pid[0:-2]

but I keep getting the response:

IndentationError: unexpected indent

could someone please explain what the possible problem could be? Thanks.

Jean
Jean is offline   Reply With Quote