aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py
index a091cd78..afd28f20 100644
--- a/src/cryptography/x509.py
+++ b/src/cryptography/x509.py
@@ -1473,9 +1473,7 @@ class CertificateSigningRequestBuilder(object):
OID_SUBJECT_ALTERNATIVE_NAME, critical, extension
)
elif isinstance(extension, KeyUsage):
- extension = Extension(
- OID_KEY_USAGE, critical, extension
- )
+ extension = Extension(OID_KEY_USAGE, critical, extension)
else:
raise NotImplementedError('Unsupported X.509 extension.')
# TODO: This is quadratic in the number of extensions