disable M2Crypto on Python 3

This commit is contained in:
clowwindy 2014-12-11 22:54:49 +08:00
parent 3e503bf677
commit 810db996cd
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ try:
__import__('M2Crypto')
except ImportError:
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,