aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-04-15 12:57:03 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-04-15 12:57:03 -0400
commit7fee3d69a5bc9954c3fe1e8cb6b4bef884319ac9 (patch)
tree46351599010216cf825635577201cd4c9e5c3339 /src
parent27c750de99df6818b5bc0414dd7995fb514f5c28 (diff)
parentb511ba8a45d4af2744b46161836a7998ff821bbc (diff)
downloadcryptography-7fee3d69a5bc9954c3fe1e8cb6b4bef884319ac9.tar.gz
cryptography-7fee3d69a5bc9954c3fe1e8cb6b4bef884319ac9.tar.bz2
cryptography-7fee3d69a5bc9954c3fe1e8cb6b4bef884319ac9.zip
Merge pull request #1850 from reaperhulk/update-x509-repr
improve KeyUsage repr
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py
index a9b6f8bd..b533b434 100644
--- a/src/cryptography/x509.py
+++ b/src/cryptography/x509.py
@@ -353,8 +353,8 @@ class KeyUsage(object):
encipher_only = self.encipher_only
decipher_only = self.decipher_only
except ValueError:
- encipher_only = "N/A"
- decipher_only = "N/A"
+ encipher_only = None
+ decipher_only = None
return ("<KeyUsage(digital_signature={0.digital_signature}, "
"content_commitment={0.content_commitment}, "