Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions adafruit_rsa/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@
class AbstractKey(object):
"""Abstract superclass for private and public keys."""

__slots__ = ("n", "e")

def __init__(self, n: int, e: int) -> None:
self.n = n
self.e = e
Expand Down
1 change: 0 additions & 1 deletion adafruit_rsa/pkcs1.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class _FileLikeObject(Protocol):

def read(self, blocksize: int) -> Union[bytes, str]:
"""A method that reads a given number of bytes or chracters"""
...

except ImportError:
pass
Expand Down
5 changes: 2 additions & 3 deletions examples/rsa_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ def test_sign_verify_fail():

# Run adafruit_rsa tests
start_time = time.monotonic()
# pylint: disable=consider-using-enumerate
for test_num, test_name in enumerate(all_tests, start=0):
for test_name in all_tests:
# for i in range(0, len(all_tests)):
print("Testing: {}".format(test_name))
all_tests[test_num]()
test_name()
print("OK!")
print(
"Ran {} tests in {} seconds".format(len(all_tests), time.monotonic() - start_time)
Expand Down