You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2023. It is now read-only.
write_pnm() will fail in Python 3.x because it mixes string and binary writes to the same file. Writing strings to a file open in binary mode requires encoding that string, and vice versa.
I'm presuming you expect the output file to be in binary mode, so this is easily fixed by encoding the strings as they're written.