diff options
author | Jack Lloyd <[email protected]> | 2017-12-17 06:35:20 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-17 06:35:20 -0500 |
commit | 071e87484212239e5d607e681e2e96799043056f (patch) | |
tree | d162a950f68d24117a7a5051e96b648f0f5a5d65 | |
parent | f8982aba6b1018e6ecdfb05af0780e59a3d2e31c (diff) |
Latest pylint doesn't like these asserts
-rwxr-xr-x | src/python/botan2.py | 4 |
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: |