]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Remove obsolete comment (#873)
authorsblondon <stephane.blondon@gmail.com>
Mon, 2 Jan 2023 16:59:57 +0000 (17:59 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Jan 2023 16:59:57 +0000 (08:59 -0800)
dns/query.py

index 11e5fc8c21e4aa3664eb0b1f010d76a5d50d42cf..b4cd69f75446f322b25d3e0628cb1f33b2540522 100644 (file)
@@ -1032,13 +1032,7 @@ def tls(
         where, port, source, source_port
     )
     if ssl_context is None and not sock:
-        # LGTM complains about this because the default might permit TLS < 1.2
-        # for compatibility, but the python documentation says that explicit
-        # versioning is deprecated, and that as of python 3.6 it will negotiate
-        # the highest version possible.  We also set a minimum version when we
-        # can, even though this might require a future dnspython release if that
-        # version becomes deprecated.
-        ssl_context = ssl.create_default_context()  # lgtm[py/insecure-protocol]
+        ssl_context = ssl.create_default_context()
         ssl_context.minimum_version = ssl.TLSVersion.TLSv1_2
         if server_hostname is None:
             ssl_context.check_hostname = False