diff cagou/core/patches.py @ 438:58d3ea442f9c

core (patches): renamed `apply` to `disable_tls_validation` which suits better
author Goffi <goffi@goffi.org>
date Sat, 07 Mar 2020 00:05:49 +0100
parents 672880661797
children 3c9ba4a694ef
line wrap: on
line diff
--- a/cagou/core/patches.py	Sat Mar 07 00:05:49 2020 +0100
+++ b/cagou/core/patches.py	Sat Mar 07 00:05:49 2020 +0100
@@ -20,7 +20,7 @@
 import ssl
 
 
-def apply():
+def disable_tls_validation():
     # allow to disable certificate validation
     ctx_no_verify = ssl.create_default_context()
     ctx_no_verify.check_hostname = False