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