diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-03-23 21:08:01 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-03-23 21:08:01 -0500 |
commit | 5553d576f3bc3f65b84de99a2561360f82fc110f (patch) | |
tree | dbf2750269c500d790fa46da6da4555009be2d7e | |
parent | a5c6e9a89242bb42dbc98f29681d2f74aec12b02 (diff) | |
download | cryptography-5553d576f3bc3f65b84de99a2561360f82fc110f.tar.gz cryptography-5553d576f3bc3f65b84de99a2561360f82fc110f.tar.bz2 cryptography-5553d576f3bc3f65b84de99a2561360f82fc110f.zip |
review feedback updates
-rw-r--r-- | docs/x509.rst | 4 | ||||
-rw-r--r-- | src/cryptography/x509.py | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/docs/x509.rst b/docs/x509.rst index 36e9fab3..13218914 100644 --- a/docs/x509.rst +++ b/docs/x509.rst @@ -284,7 +284,7 @@ X.509 Extensions :type: :class:`ObjectIdentifier` - The extension OID. + The :ref:`extension OID <extension_oids>`. .. attribute:: critical @@ -485,6 +485,8 @@ Signature Algorithm OIDs Corresponds to the dotted string ``2.16.840.1.101.3.4.3.2"``. This is a SHA256 digest signed by a DSA key. +.. _extension_oids: + Extension OIDs ~~~~~~~~~~~~~~ diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index 43ece920..556e5a3c 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py @@ -177,9 +177,8 @@ class BasicConstraints(object): raise ValueError("path_length must be None when ca is False") if ( - path_length is not None and (not isinstance( - path_length, six.integer_types - ) or path_length < 0) + path_length is not None and + (not isinstance(path_length, six.integer_types) or path_length < 0) ): raise TypeError( "path_length must be a non-negative integer or None" |