Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9f2ab9

Browse files
committed
Fix duplicate doc entry for SSLContext.get_ca_certs()
(closes #18147)
2 parents d5aec7b + 97aa953 commit b9f2ab9

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

Doc/library/ssl.rst

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,10 @@ to speed up repeated connections from the same clients.
11951195
does not contain certificates from *capath* unless a certificate was
11961196
requested and loaded by a SSL connection.
11971197

1198+
.. note::
1199+
Certificates in a capath directory aren't loaded unless they have
1200+
been used at least once.
1201+
11981202
.. versionadded:: 3.4
11991203

12001204
.. method:: SSLContext.set_default_verify_paths()
@@ -1375,18 +1379,6 @@ to speed up repeated connections from the same clients.
13751379
>>> stats['hits'], stats['misses']
13761380
(0, 0)
13771381

1378-
.. method:: SSLContext.get_ca_certs(binary_form=False)
1379-
1380-
Returns a list of dicts with information of loaded CA certs. If the
1381-
optional argument is true, returns a DER-encoded copy of the CA
1382-
certificate.
1383-
1384-
.. note::
1385-
Certificates in a capath directory aren't loaded unless they have
1386-
been used at least once.
1387-
1388-
.. versionadded:: 3.4
1389-
13901382
.. attribute:: SSLContext.check_hostname
13911383

13921384
Wether to match the peer cert's hostname with :func:`match_hostname` in

0 commit comments

Comments
 (0)