From a40ed47668b31893c2f859a4d8698207723652c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 18 Jun 2012 17:15:02 +0200 Subject: Fixed some more Py32 incompatibilities --- rsa/parallel.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'rsa/parallel.py') 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') -- cgit v1.2.1