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