summaryrefslogtreecommitdiff
path: root/src/OpenSSL/_util.py
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2016-03-11 15:04:47 +0100
committerHynek Schlawack <hs@ox.cx>2016-03-11 15:04:47 +0100
commitec476793c95b8ae5e42f0a1992a510b35d6221ee (patch)
tree323ad6dc9a8b656a7afc4798ef7e8ad531e1dee8 /src/OpenSSL/_util.py
parent22a4b666a933f4dd3cd00709cd5c3ec754e6c05e (diff)
downloadpyopenssl-ec476793c95b8ae5e42f0a1992a510b35d6221ee.tar.gz
Assert against True explicitly
Diffstat (limited to 'src/OpenSSL/_util.py')
-rw-r--r--src/OpenSSL/_util.py2
1 files changed, 1 insertions, 1 deletions
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 @@ def make_assert(error):
"""
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