summaryrefslogtreecommitdiff
path: root/rsa/pkcs1.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
commit6ce8f458f51628df68a559784d42f4874b15e21c (patch)
tree9ac0fef8c58d8a5def3e967ff11c6d8925ec903a /rsa/pkcs1.py
parenta20db8ff53e62c78f9e6b4077167ebb4a81cf94c (diff)
downloadrsa-6ce8f458f51628df68a559784d42f4874b15e21c.tar.gz
Tests are now functional (only running without syntax errors) on Python 3 too.
Diffstat (limited to 'rsa/pkcs1.py')
-rw-r--r--rsa/pkcs1.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rsa/pkcs1.py b/rsa/pkcs1.py
index fbe9fe7..9686cf9 100644
--- a/rsa/pkcs1.py
+++ b/rsa/pkcs1.py
@@ -374,7 +374,7 @@ __all__ = ['encrypt', 'decrypt', 'sign', 'verify',
'DecryptionError', 'VerificationError', 'CryptoError']
if __name__ == '__main__':
- print 'Running doctests 1000x or until failure'
+ print('Running doctests 1000x or until failure')
import doctest
for count in range(1000):
@@ -383,6 +383,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')