aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/x509.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptography/x509.py')
-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}, "