summaryrefslogtreecommitdiff
path: root/rsa/key.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/key.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/key.py')
-rw-r--r--rsa/key.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/rsa/key.py b/rsa/key.py
index 479b8f0..17bf69e 100644
--- a/rsa/key.py
+++ b/rsa/key.py
@@ -116,7 +116,7 @@ class PublicKey(AbstractKey):
return getattr(self, key)
def __repr__(self):
- return u'PublicKey(%i, %i)' % (self.n, self.e)
+ return 'PublicKey(%i, %i)' % (self.n, self.e)
def __eq__(self, other):
if other is None:
@@ -272,7 +272,7 @@ class PrivateKey(AbstractKey):
return getattr(self, key)
def __repr__(self):
- return u'PrivateKey(%(n)i, %(e)i, %(d)i, %(p)i, %(q)i)' % self
+ return 'PrivateKey(%(n)i, %(e)i, %(d)i, %(p)i, %(q)i)' % self
def __eq__(self, other):
if other is None:
@@ -573,8 +573,8 @@ if __name__ == '__main__':
break
if (count and count % 10 == 0) or count == 1:
- print '%i times' % count
+ print('%i times' % count)
except KeyboardInterrupt:
- print 'Aborted'
+ print('Aborted')
else:
- print 'Doctests done'
+ print('Doctests done')