Remove unnecessary assignment.

This commit is contained in:
Felix Fontein
2021-09-30 22:32:57 +02:00
parent 62c97d1546
commit 5a27b23121

View File

@@ -73,7 +73,7 @@ def cryptography_get_extensions_from_cert(cert):
try:
# For certain old versions of cryptography, backend is a MultiBackend object,
# which has no _lib attribute. In that case, revert to the old approach.
x = backend._lib
backend._lib
except AttributeError:
backend = cert._backend
@@ -128,7 +128,7 @@ def cryptography_get_extensions_from_csr(csr):
try:
# For certain old versions of cryptography, backend is a MultiBackend object,
# which has no _lib attribute. In that case, revert to the old approach.
x = backend._lib
backend._lib
except AttributeError:
backend = csr._backend
@@ -549,7 +549,7 @@ def parse_pkcs12(pkcs12_bytes, passphrase=None):
try:
# For certain old versions of cryptography, backend is a MultiBackend object,
# which has no _lib attribute. In that case, revert to the old approach.
x = backend._lib
backend._lib
except AttributeError:
backend = certificate._backend
maybe_name = backend._lib.X509_alias_get0(certificate._x509, backend._ffi.NULL)