summaryrefslogtreecommitdiff
path: root/rsa/parallel.py
diff options
context:
space:
mode:
Diffstat (limited to 'rsa/parallel.py')
-rw-r--r--rsa/parallel.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/rsa/parallel.py b/rsa/parallel.py
index d164067..e5034ac 100644
--- a/rsa/parallel.py
+++ b/rsa/parallel.py
@@ -24,6 +24,8 @@ Introduced in Python-RSA 3.1.
'''
+from __future__ import print_function
+
import multiprocessing as mp
import rsa.prime
@@ -77,7 +79,7 @@ __all__ = ['getprime']
if __name__ == '__main__':
- print 'Running doctests 1000x or until failure'
+ print('Running doctests 1000x or until failure')
import doctest
for count in range(100):
@@ -86,7 +88,7 @@ if __name__ == '__main__':
break
if count and count % 10 == 0:
- print '%i times' % count
+ print('%i times' % count)
- print 'Doctests done'
+ print('Doctests done')