Re: [Python-Dev] Possible bug in base64.decode: linebreaks are not ignored

2018-01-03 Thread Gregory P. Smith
I opened https://bugs.python.org/issue32491 so this wouldn't be lost under the assumption that you'll eventually resolve your bugtracker account situation. :) I don't know what the correct behavior *should* be but agree that it seems odd for decode to behave different than decodebytes. -gps On W

[Python-Dev] Possible bug in base64.decode: linebreaks are not ignored

2018-01-03 Thread Oleg Sivokon
Hello, I've tried reading various RFCs around Base64 encoding, but I couldn't make the ends meet. Yet there is an inconsistency between base64.decodebytes() and base64.decode() in that how they handle linebreaks that were used to collate the encoded text. Below is an example of what I'm talki