summaryrefslogtreecommitdiff
path: root/rsa/parallel.py
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2012-06-18 17:15:02 +0200
committerSybren A. Stüvel <sybren@stuvel.eu>2012-06-18 17:15:02 +0200
commita40ed47668b31893c2f859a4d8698207723652c1 (patch)
tree97e0f99f4438a8f3e9d07cc31d46aa985fbfd252 /rsa/parallel.py
parent7a583b573492dab4e9ebe7e5b2d6ce87d6edf55d (diff)
downloadrsa-git-a40ed47668b31893c2f859a4d8698207723652c1.tar.gz
Fixed some more Py32 incompatibilitiesversion-3.1.1
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')