commit | ec476793c95b8ae5e42f0a1992a510b35d6221ee | [log] [tgz] |
---|---|---|
author | Hynek Schlawack <hs@ox.cx> | Fri Mar 11 15:04:47 2016 +0100 |
committer | Hynek Schlawack <hs@ox.cx> | Fri Mar 11 15:04:47 2016 +0100 |
tree | 323ad6dc9a8b656a7afc4798ef7e8ad531e1dee8 | |
parent | 22a4b666a933f4dd3cd00709cd5c3ec754e6c05e [diff] [blame] |
Assert against True explicitly
diff --git a/src/OpenSSL/_util.py b/src/OpenSSL/_util.py index cba72ad..b68b11e 100644 --- a/src/OpenSSL/_util.py +++ b/src/OpenSSL/_util.py
@@ -58,7 +58,7 @@ """ If ok is not true-ish, retrieve the error from OpenSSL and raise it. """ - if not ok: + if ok is not True: exception_from_error_queue(error) return openssl_assert