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
|