[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-08-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___ ___

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset fa6304a5225787054067bb56089632146d288b20 by Idan Moral in branch 'main': bpo-44690: Adopt binacii.a2b_base64's strict mode in base64.b64decode (GH-27272) https://github.com/python/cpython/commit/fa6304a5225787054067bb56089632146d288b20 -

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm not worried about the regex vs binascii C implementation performance at all. -- nosy: +gregory.p.smith ___ Python tracker ___ _

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-07-20 Thread Idan Moral
Change by Idan Moral : -- keywords: +patch pull_requests: +25817 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27272 ___ Python tracker ___ _

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-07-20 Thread Idan Moral
New submission from Idan Moral : This is a follow-up PR to GH-24402. Currently, *base64.b64decode* uses a generic regex to validate *s* (when *validate* is true), which sometimes results in unexpected behavior and exception messages. Example: (1)base64.b64decode('ab==', validate=True) #