aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/x509/reference.rst7
1 files changed, 2 insertions, 5 deletions
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst
index fe52727c..e7e02de3 100644
--- a/docs/x509/reference.rst
+++ b/docs/x509/reference.rst
@@ -408,7 +408,8 @@ X.509 CRL (Certificate Revocation List) Object
>>> len(crl)
1
- >>> type(crl[0])
+ >>> revoked_certificate = crl[0]
+ >>> type(revoked_certificate)
<class 'cryptography.hazmat.backends.openssl.x509._RevokedCertificate'>
>>> for r in crl:
... print(r.serial_number)
@@ -700,10 +701,6 @@ X.509 Revoked Certificate Object
.. versionadded:: 1.0
- .. doctest::
-
- >>> revoked_certificate = crl[0]
-
.. attribute:: serial_number
:type: :class:`int`