> # if header != "\211PNG\r\n\032\n":
> # raise IOError("not a valid PNG file")
> # outfile.write(header)
>
> It returns the IO error when I try it on this and other files:
> http://simcitysphere.com/peachville.sc4
If you are sure the file is OK then it looks like the signature
definition test must be wrong. Check the file header against Freds
string and modify the strong to match.
( You could of course try commenting out the test and see if
the main code works as expected... backing up the data first
of course!)
HTH
Alan G.
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor