From c4f91baa35d618653fecc91b55d5d6faf270d438 Mon Sep 17 00:00:00 2001 From: Xiang Zhang Date: Fri, 23 Dec 2016 11:10:19 +0800 Subject: [PATCH] Issue #29038: Fix duplicate get_ca_certs() doc entry. --- Doc/library/ssl.rst | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 8849d0f3d781..8b41317eb206 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -1124,6 +1124,10 @@ to speed up repeated connections from the same clients. does not contain certificates from *capath* unless a certificate was requested and loaded by a SSL connection. + .. note:: + Certificates in a capath directory aren't loaded unless they have + been used at least once. + .. method:: SSLContext.set_default_verify_paths() Load a set of default "certification authority" (CA) certificates from @@ -1287,16 +1291,6 @@ to speed up repeated connections from the same clients. >>> stats['hits'], stats['misses'] (0, 0) -.. method:: SSLContext.get_ca_certs(binary_form=False) - - Returns a list of dicts with information of loaded CA certs. If the - optional argument is true, returns a DER-encoded copy of the CA - certificate. - - .. note:: - Certificates in a capath directory aren't loaded unless they have - been used at least once. - .. attribute:: SSLContext.check_hostname Wether to match the peer cert's hostname with :func:`match_hostname` in -- 2.47.3