[issue31659] ssl module should not use textwrap for wrapping PEM format.

2019-02-21 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue31659] ssl module should not use textwrap for wrapping PEM format.

2017-10-02 Thread Christian Heimes
Change by Christian Heimes : -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tracker ___ __

[issue31659] ssl module should not use textwrap for wrapping PEM format.

2017-10-02 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue31659] ssl module should not use textwrap for wrapping PEM format.

2017-10-02 Thread INADA Naoki
INADA Naoki added the comment: New changeset b75a228af8c0553aef44e4e03763af90fbc8737f by INADA Naoki in branch 'master': bpo-31659: Use simple slicing to format PEM cert (GH-3849) https://github.com/python/cpython/commit/b75a228af8c0553aef44e4e03763af90fbc8737f -- __

[issue31659] ssl module should not use textwrap for wrapping PEM format.

2017-10-01 Thread INADA Naoki
INADA Naoki added the comment: For the record, this is part of `import requests`. `import ssl` took 11 ms and `textwrap` weights 2.4 ms of it. - ipaddress 2048 us (self 2048 us) - textwrap 2402 us (self 2402 us) - _ssl 2744 us (self 27

[issue31659] ssl module should not use textwrap for wrapping PEM format.

2017-10-01 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +3829 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue31659] ssl module should not use textwrap for wrapping PEM format.

2017-10-01 Thread INADA Naoki
Change by INADA Naoki : -- components: +Library (Lib) versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31659] ssl module should not use textwrap for wrapping PEM format.

2017-10-01 Thread INADA Naoki
New submission from INADA Naoki : Current DER_cert_to_PEM_cert() uses textwrap like this: def DER_cert_to_PEM_cert(der_cert_bytes): """Takes a certificate in binary DER format and returns the PEM version of it as a string.""" f = str(base64.standard_b64encode(der_cer