diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-03-22 13:31:18 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-03-22 13:31:18 -0500 |
commit | 611d3d36fb1e33582eefc81cc241140d7a69f733 (patch) | |
tree | dfe8dd2a57cbb0db94845c4ea9bab4e56788dcfe /src | |
parent | 8589466c0a12835cda03bf91043cf51b657d9e46 (diff) | |
download | cryptography-611d3d36fb1e33582eefc81cc241140d7a69f733.tar.gz cryptography-611d3d36fb1e33582eefc81cc241140d7a69f733.tar.bz2 cryptography-611d3d36fb1e33582eefc81cc241140d7a69f733.zip |
doc update
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index d64d61f0..4ba6956e 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py @@ -175,7 +175,7 @@ class BasicConstraints(object): if not isinstance(ca, bool): raise TypeError("ca must be a boolean value") - if path_length is not None and ca is False: + if path_length is not None and not ca: raise ValueError("path_length must be None when ca is False") if path_length is not None and (not isinstance(path_length, int) |