]> granicus.if.org Git - python/commitdiff
Issue #29038: Fix duplicate get_ca_certs() doc entry.
authorXiang Zhang <angwerzx@126.com>
Fri, 23 Dec 2016 03:10:19 +0000 (11:10 +0800)
committerXiang Zhang <angwerzx@126.com>
Fri, 23 Dec 2016 03:10:19 +0000 (11:10 +0800)
Doc/library/ssl.rst

index 8849d0f3d781e891b3c10d6383b1e7a757a45464..8b41317eb206a976d4108133faf274ef10b568ab 100644 (file)
@@ -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