Skip to content

Commit

Permalink
Remove unused cryptography wildcard import
Browse files Browse the repository at this point in the history
spsdk/crypto/__init__.py:
The unused wildcard import of `cryptography.hazmat.backends.interfaces`
prevents spsdk to work with cryptography >= 37.0.0.
None of the Backend classes found in the module are used and therefore
the import can be safely removed.
  • Loading branch information
dvzrv committed May 19, 2022
1 parent c3c7fb2 commit a85b854
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion spsdk/crypto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
# Explicit import due to MYPY issue
from cryptography.hazmat.backends import *
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.backends.interfaces import *
from cryptography.hazmat.backends.openssl.rsa import *

# Explicit import due to MYPY issue
Expand Down

0 comments on commit a85b854

Please sign in to comment.