fix compatibility with old python versions

This commit is contained in:
ssamson-tis 2015-07-03 16:18:00 +02:00
parent 92cf880db2
commit 464c9dd9b1
2 changed files with 5 additions and 2 deletions

View File

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

View File

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