>>>>> MRAB <pyt...@mrabarnett.plus.com> (M) wrote: >M> mattia wrote: >>> You were right, the problem was with the print function, using a normal >>> write everythong works fine. >>> >M> You should open the output file as binary (it doesn't matter on >M> Linux/Unix, but is a good idea anyway for portability).
It probably DOES matter also on Linux/Unix, as the OP is using Python3. -- Piet van Oostrum <p...@cs.uu.nl> URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4] Private email: p...@vanoostrum.org -- http://mail.python.org/mailman/listinfo/python-list