From a34ee6eda4aa538ab768e28a3f7d9a31ed0e5a58 Mon Sep 17 00:00:00 2001 From: msetina Date: Tue, 19 Mar 2024 08:47:06 +0100 Subject: [PATCH] helping lint to better place --- signxml/xades/xades.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signxml/xades/xades.py b/signxml/xades/xades.py index efa3ec1..6ffcb63 100644 --- a/signxml/xades/xades.py +++ b/signxml/xades/xades.py @@ -274,7 +274,7 @@ def _verify_signing_time(self, verify_result: VerifyResult): def _verify_cert_digest(self, signing_cert_node, expect_cert, idx): cert = self._find(signing_cert_node, "xades:Cert[{0}]".format(idx), False) - if cert != None: + if cert is not None: cert_digest = self._find(cert, "xades:CertDigest") digest_alg = DigestAlgorithm(self._find(cert_digest, "DigestMethod").get("Algorithm")) digest_value = self._find(cert_digest, "DigestValue")