On Tue, Jan 16, 2018 at 3:17 PM, Ned Batchelder <n...@nedbatchelder.com> wrote: > On 1/16/18 2:19 PM, Larry Martell wrote: >> >> On Tue, Jan 16, 2018 at 12:00 PM, Larry Martell <larry.mart...@gmail.com> >> wrote: >>> >>> Looking for 2.7 docs on read.encode - googling did not turn up anything. >>> >>> Specifically, looking for the supported options for base64, and how to >>> specify them, e.g. Base64.NO_WRAP >> >> So I just realized that encode() is not a method of read() it's a >> string method. But I still have the same question - can I pass in any >> flags? >> >> My issue is that I am base64 encoding PNG images on linux and it's >> putting a LF at the end of each line. If I do the same on Windows it's >> putting CR/LF. I want the files to be encoded with no platform >> dependences. Googling I found mention of Base64.NO_WRAP and I want to >> pass that into encode() - can I do that? > > > Base64.NO_WRAP seems to be a Java thing.
Yeah I saw it mentioned in a SO post that was java related. Wondering if there is some way to do the same in python. -- https://mail.python.org/mailman/listinfo/python-list