diff options
author | Legrandin <helderijs@gmail.com> | 2013-06-16 11:47:16 +0200 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-07-14 23:08:47 -0700 |
commit | f9a0fc77e1c8847c1a17503e5a1b86a409b8cb2d (patch) | |
tree | 1c80cc33e42668d5d1989171374dc3ff3e7f718f | |
parent | 134e164ac04ff25670b14ada8a0c5c41317fb1fa (diff) | |
download | pycrypto-f9a0fc77e1c8847c1a17503e5a1b86a409b8cb2d.tar.gz |
FIX #1191411: RSA export example
Closes: https://bugs.launchpad.net/pycrypto/+bug/1191411
-rw-r--r-- | lib/Crypto/PublicKey/RSA.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Crypto/PublicKey/RSA.py b/lib/Crypto/PublicKey/RSA.py index f73cf5b..a5afeb9 100644 --- a/lib/Crypto/PublicKey/RSA.py +++ b/lib/Crypto/PublicKey/RSA.py @@ -46,7 +46,7 @@ them from known components, exporting them, and importing them. >>> >>> key = RSA.generate(2048) >>> f = open('mykey.pem','w') - >>> f.write(RSA.exportKey('PEM')) + >>> f.write(key.exportKey('PEM')) >>> f.close() ... >>> f = open('mykey.pem','r') |