On Sep 10, 6:45 pm, Aaron Scott <[EMAIL PROTECTED]> wrote:
> > CORRECTION: '3cII' should be '3sII'.
>
> Even with the correction, I'm still getting the error.

Me being silly...

Quick fix:
signature = file.read(3)
then the rest can stay the same, struct.calcsize('3sII') expects a 12
byte string, whereby you only really have 11 -- alignment and all
that...

Jon.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to