disable M2Crypto on Python 3
This commit is contained in:
parent
3e503bf677
commit
810db996cd
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ try:
|
||||||
__import__('M2Crypto')
|
__import__('M2Crypto')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
has_m2 = False
|
has_m2 = False
|
||||||
|
if bytes != str:
|
||||||
|
has_m2 = False
|
||||||
|
|
||||||
|
|
||||||
def create_cipher(alg, key, iv, op, key_as_bytes=0, d=None, salt=None, i=1,
|
def create_cipher(alg, key, iv, op, key_as_bytes=0, d=None, salt=None, i=1,
|
||||||
|
|
Loading…
Reference in a new issue