Python urllib3.exceptions.InsecurePlatformWarning() Examples
The following are 5
code examples of urllib3.exceptions.InsecurePlatformWarning().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
urllib3.exceptions
, or try the search function
.
Example #1
Source File: compat.py From deepWordBug with Apache License 2.0 | 5 votes |
def filter_ssl_warnings(): # Ignore warnings related to SNI as it is not being used in validations. warnings.filterwarnings( 'ignore', message="A true SSLContext object is not available.*", category=exceptions.InsecurePlatformWarning, module=r".*urllib3\.util\.ssl_") filter_ssl_san_warnings()
Example #2
Source File: compat.py From bash-lambda-layer with MIT License | 5 votes |
def filter_ssl_warnings(): # Ignore warnings related to SNI as it is not being used in validations. warnings.filterwarnings( 'ignore', message="A true SSLContext object is not available.*", category=exceptions.InsecurePlatformWarning, module=r".*urllib3\.util\.ssl_") filter_ssl_san_warnings()
Example #3
Source File: compat.py From AWS-Transit-Gateway-Demo-MultiAccount with MIT License | 5 votes |
def filter_ssl_warnings(): # Ignore warnings related to SNI as it is not being used in validations. warnings.filterwarnings( 'ignore', message="A true SSLContext object is not available.*", category=exceptions.InsecurePlatformWarning, module=r".*urllib3\.util\.ssl_") filter_ssl_san_warnings()
Example #4
Source File: compat.py From AWS-Transit-Gateway-Demo-MultiAccount with MIT License | 5 votes |
def filter_ssl_warnings(): # Ignore warnings related to SNI as it is not being used in validations. warnings.filterwarnings( 'ignore', message="A true SSLContext object is not available.*", category=exceptions.InsecurePlatformWarning, module=r".*urllib3\.util\.ssl_") filter_ssl_san_warnings()
Example #5
Source File: compat.py From aws-builders-fair-projects with Apache License 2.0 | 5 votes |
def filter_ssl_warnings(): # Ignore warnings related to SNI as it is not being used in validations. warnings.filterwarnings( 'ignore', message="A true SSLContext object is not available.*", category=exceptions.InsecurePlatformWarning, module=r".*urllib3\.util\.ssl_") filter_ssl_san_warnings()