On Sat, Jan 11, 2014 at 07:22:30PM +0000, MRAB wrote:

> >with open("outfile.pdf", "w", encoding="latin-1") as f:
> >     f.write(pdf)
> >
> [snip]
> The second example won't work because you're forgetting about the
> handling of line endings in text mode.

So I did! Thank you for the correction.



-- 
Steven
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to