python 3.5 compat fix

This commit is contained in:
Alexander Bersenev
2018-05-30 16:57:13 +05:00
parent 16040960cf
commit bd0b452392

View File

@@ -17,7 +17,7 @@ try:
ctr = Counter.new(128, initial_value=iv)
return AES.new(key, AES.MODE_CTR, counter=ctr)
except ModuleNotFoundError:
except ImportError:
print("Failed to find pycrypto, using slow AES version", flush=True)
import pyaes