aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-04-15 11:05:24 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-04-15 11:05:24 -0400
commitb372e6763b0965b250916c6f27f92401b5804007 (patch)
treeea67e5415fe80f8a90df3f873230a141ff0d5b86 /src
parent27c750de99df6818b5bc0414dd7995fb514f5c28 (diff)
downloadcryptography-b372e6763b0965b250916c6f27f92401b5804007.tar.gz
cryptography-b372e6763b0965b250916c6f27f92401b5804007.tar.bz2
cryptography-b372e6763b0965b250916c6f27f92401b5804007.zip
improve KeyUsage repr
fixes #1834
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}, "