aboutsummaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-17 06:35:20 -0500
committerJack Lloyd <[email protected]>2017-12-17 06:35:20 -0500
commit071e87484212239e5d607e681e2e96799043056f (patch)
treed162a950f68d24117a7a5051e96b648f0f5a5d65 /src/python
parentf8982aba6b1018e6ecdfb05af0780e59a3d2e31c (diff)
Latest pylint doesn't like these asserts
Diffstat (limited to 'src/python')
-rwxr-xr-xsrc/python/botan2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/botan2.py b/src/python/botan2.py
index a489a4b34..700719496 100755
--- a/src/python/botan2.py
+++ b/src/python/botan2.py
@@ -78,14 +78,14 @@ def _ctype_bits(s):
if isinstance(s, str):
return s
else:
- assert False
+ raise Exception("Internal error - unexpected type provided to _ctype_bits")
else:
if isinstance(s, bytes):
return s
elif isinstance(s, str):
return s.encode('utf-8')
else:
- assert False
+ raise Exception("Internal error - unexpected type provided to _ctype_bits")
def _ctype_bufout(buf):
if sys.version_info[0] < 3: