From 93e5c6a5bb12a67a89bd8b24584d64a3102b2096 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Tue, 3 Dec 2019 19:37:34 +0100 Subject: [PATCH] Document actual default value for resolve_cert_reqs() (#1767) --- src/urllib3/util/ssl_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/urllib3/util/ssl_.py b/src/urllib3/util/ssl_.py index 8495b7753d..5b363d7f9e 100644 --- a/src/urllib3/util/ssl_.py +++ b/src/urllib3/util/ssl_.py @@ -182,7 +182,7 @@ def resolve_cert_reqs(candidate): """ Resolves the argument to a numeric constant, which can be passed to the wrap_socket function/method from the ssl module. - Defaults to :data:`ssl.CERT_NONE`. + Defaults to :data:`ssl.CERT_REQUIRED`. If given a string it is assumed to be the name of the constant in the :mod:`ssl` module or its abbreviation. (So you can specify `REQUIRED` instead of `CERT_REQUIRED`.