fix compatibility with old python versions
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user