summaryrefslogtreecommitdiff
path: root/rsa/key.py
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2016-01-22 11:42:50 +0100
committerSybren A. Stüvel <sybren@stuvel.eu>2016-01-22 11:42:50 +0100
commitea4a618e8db0cd67ea22bb56af949ef6f27cc534 (patch)
tree17f88edb16fa1666f86cfdad6b026e58a82d6b3e /rsa/key.py
parente89dbb9e5acead61304b6817a8e50640035bbb58 (diff)
downloadrsa-git-ea4a618e8db0cd67ea22bb56af949ef6f27cc534.tar.gz
Fix #30, removed use of deprecated `base64.decodestring` from docstrings
Diffstat (limited to 'rsa/key.py')
-rw-r--r--rsa/key.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsa/key.py b/rsa/key.py
index b659cc9..d530f33 100644
--- a/rsa/key.py
+++ b/rsa/key.py
@@ -143,7 +143,7 @@ class PublicKey(AbstractKey):
>>> import base64
>>> b64der = 'MAwCBQCNGmYtAgMBAAE='
- >>> der = base64.decodestring(b64der)
+ >>> der = base64.standard_b64decode(b64der)
This loads the file:
@@ -333,7 +333,7 @@ class PrivateKey(AbstractKey):
>>> import base64
>>> b64der = 'MC4CAQACBQDeKYlRAgMBAAECBQDHn4npAgMA/icCAwDfxwIDANcXAgInbwIDAMZt'
- >>> der = base64.decodestring(b64der)
+ >>> der = base64.standard_b64decode(b64der)
This loads the file: