소스 검색

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):


불러오는 중...
취소
저장