[issue22365] SSLContext.load_verify_locations(cadata) does not accept CRLs

2014-09-08 Thread Ralph Broenink
Ralph Broenink added the comment: Here's a minimal example of the issue, assuming you have obtained a CRL in PEM format, e.g. from https://www.emulab.net/genicrl.bundle: import ssl context = ssl.create_default_context() path = 'path/to/crl.crl'

[issue22365] SSLContext.load_verify_locations(cadata) does not accept CRLs

2014-09-08 Thread Ralph Broenink
New submission from Ralph Broenink: Issue #18138 added support for the cadata argument in SSLContext.load_verify_locations. However, this argument does not support certificate revocation lists (CRLs) to be added (at least not in PEM format): ssl.SSLError: [PEM: NO_START_LINE] no start

[issue22154] ZipFile.open context manager support

2014-08-06 Thread Ralph Broenink
Ralph Broenink added the comment: Perhaps this should be documented then :) -- ___ Python tracker <http://bugs.python.org/issue22154> ___ ___ Python-bugs-list m

[issue22154] ZipFile.open context manager support

2014-08-06 Thread Ralph Broenink
New submission from Ralph Broenink: In Python 3.2, context manager support for ZipFile was added. However, I would also love the ability for ``ZipFile.open`` to be used as a context manager, e.g.: from zipfile import ZipFile with ZipFile("test.zip", "r") as z: