瀏覽代碼

Check if _create_unverified_context is supported before using it

master
Krzysztof Kwiatkowski 8 年之前
父節點
當前提交
9f39124015
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      tncc.py

+ 2
- 1
tncc.py 查看文件

@@ -11,7 +11,8 @@ import collections
import zlib
import HTMLParser

ssl._create_default_https_context = ssl._create_unverified_context
if hasattr(ssl, '_create_unverified_context'):
ssl._create_default_https_context = ssl._create_unverified_context

# 0013 - Message
def decode_0013(buf):


Loading…
取消
儲存