fix the hack

This commit is contained in:
Jay Lee
2021-02-11 21:31:42 +00:00
parent 88e07ddbaa
commit 0fefa19f80

View File

@@ -11,7 +11,7 @@ import ykman.descriptor
# hack to avoid deprecation notice from cryptography
# remove after this lands:
# https://github.com/Yubico/yubikey-manager/pull/385
sys.modules['ykman.utils.int_from_bytes'] = int.from_bytes
sys.modules['cryptography.utils'].int_from_bytes = int.from_bytes
from ykman.piv import SLOT, ALGO, PivController, DEFAULT_MANAGEMENT_KEY
from ykman.util import TRANSPORT