>>>>> MRAB <[email protected]> (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 <[email protected]> URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4] Private email: [email protected] -- http://mail.python.org/mailman/listinfo/python-list
