我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用requests.packages.urllib3.exceptions.SNIMissingWarning()。
def ignore_warnings(): requests.packages.urllib3.disable_warnings(InsecureRequestWarning) requests.packages.urllib3.disable_warnings(SubjectAltNameWarning) requests.packages.urllib3.disable_warnings(InsecurePlatformWarning) requests.packages.urllib3.disable_warnings(SNIMissingWarning)