File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 5858class  AbstractKey (object ):
5959    """Abstract superclass for private and public keys.""" 
6060
61-     __slots__  =  ("n" , "e" )
62- 
6361    def  __init__ (self , n : int , e : int ) ->  None :
6462        self .n  =  n 
6563        self .e  =  e 
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ class _FileLikeObject(Protocol):
4444
4545        def  read (self , blocksize : int ) ->  Union [bytes , str ]:
4646            """A method that reads a given number of bytes or chracters""" 
47-             ...
4847
4948except  ImportError :
5049    pass 
Original file line number Diff line number Diff line change @@ -93,11 +93,10 @@ def test_sign_verify_fail():
9393
9494# Run adafruit_rsa tests 
9595start_time  =  time .monotonic ()
96- # pylint: disable=consider-using-enumerate 
97- for  test_num , test_name  in  enumerate (all_tests , start = 0 ):
96+ for  test_name  in  all_tests :
9897    # for i in range(0, len(all_tests)): 
9998    print ("Testing: {}" .format (test_name ))
100-     all_tests [ test_num ] ()
99+     test_name ()
101100    print ("OK!" )
102101print (
103102    "Ran {} tests in {} seconds" .format (len (all_tests ), time .monotonic () -  start_time )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments