fix compatibility with old python versions
This commit is contained in:
@@ -35,6 +35,8 @@ import tarfile
|
||||
import hashlib
|
||||
from stat import *
|
||||
import ssl
|
||||
|
||||
if hasattr(ssl, '_create_unverified_context'):
|
||||
ssl._create_default_https_context = ssl._create_unverified_context
|
||||
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ import base64
|
||||
import socket
|
||||
from stat import *
|
||||
import ssl
|
||||
if hasattr(ssl, '_create_unverified_context'):
|
||||
ssl._create_default_https_context = ssl._create_unverified_context
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user