This
>>> struct.pack("8B", 137, 80, 78, 71, 13, 10, 26, 10)
b'\x89PNG\r\n\x1a\n'
gives an error
from line (258 of my pypng.py) outfile.write(struct.pack("8B", 137,
80, 78, 71, 13, 10, 26, 10))
I assume that write needs an utf-8 string but the 137 from the pack is not
convertable ... to utf-8
So what should it be?
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pyglet-users/-/3bkN9g8t3ecJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en.