Commits

Sybren Stüvel committed d4457be

Fixed some more Py32 incompatibilities

  • Participants
  • Parent commits 24cf5c8
  • Tags version-3.1.1

Comments (0)

Files changed (2)

File rsa/_version200.py

     if number == 63:                # 63   translates to '_' (underscore)
         return byte(95)
 
-    raise ValueError(u'Invalid Base64 value: %i' % number)
+    raise ValueError('Invalid Base64 value: %i' % number)
 
 
 def from64(number):
     if number == 95:               #ord('_') translates to 63
         return(63)
 
-    raise ValueError(u'Invalid Base64 value: %i' % number)
+    raise ValueError('Invalid Base64 value: %i' % number)
 
 
 def int2str64(number):

File rsa/parallel.py

 
 '''
 
+from __future__ import print_function
+
 import multiprocessing as mp
 
 import rsa.prime
 
     
 if __name__ == '__main__':
-    print 'Running doctests 1000x or until failure'
+    print('Running doctests 1000x or until failure')
     import doctest
     
     for count in range(100):
             break
         
         if count and count % 10 == 0:
-            print '%i times' % count
+            print('%i times' % count)
     
-    print 'Doctests done'
+    print('Doctests done')