summaryrefslogtreecommitdiff
path: root/rsa/prime.py
diff options
context:
space:
mode:
authorYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-11 01:48:25 +0530
committerYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-11 01:48:25 +0530
commit5802431960ed2904db5f8cbcb2e318e6f2d4c792 (patch)
tree9ac0fef8c58d8a5def3e967ff11c6d8925ec903a /rsa/prime.py
parentfd1ec36f68eb15f86b3afcad8371ff77b653363a (diff)
downloadrsa-git-5802431960ed2904db5f8cbcb2e318e6f2d4c792.tar.gz
Tests are now functional (only running without syntax errors) on Python 3 too.
Diffstat (limited to 'rsa/prime.py')
-rw-r--r--rsa/prime.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rsa/prime.py b/rsa/prime.py
index 340ab94..4dc190c 100644
--- a/rsa/prime.py
+++ b/rsa/prime.py
@@ -152,7 +152,7 @@ def are_relatively_prime(a, b):
return (d == 1)
if __name__ == '__main__':
- print 'Running doctests 1000x or until failure'
+ print('Running doctests 1000x or until failure')
import doctest
for count in range(1000):
@@ -161,6 +161,6 @@ if __name__ == '__main__':
break
if count and count % 100 == 0:
- print '%i times' % count
+ print('%i times' % count)
- print 'Doctests done'
+ print('Doctests done')