aboutsummaryrefslogtreecommitdiffstats
path: root/src/python/botan2.py
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-10 06:49:13 -0500
committerJack Lloyd <[email protected]>2018-12-10 06:49:13 -0500
commitda6fda36e106404482db9cefdc6ef947a160dcb1 (patch)
tree2178aa52d94acc28329318d574bef91eb27060f8 /src/python/botan2.py
parent12fba1650b4847b701f3bac1ff12b8ea0b45e70f (diff)
Fix pylint3 warning [ci skip]
Diffstat (limited to 'src/python/botan2.py')
-rwxr-xr-xsrc/python/botan2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/botan2.py b/src/python/botan2.py
index 273fe3f46..e90968fa0 100755
--- a/src/python/botan2.py
+++ b/src/python/botan2.py
@@ -749,7 +749,7 @@ class SymmetricCipher(object):
def valid_nonce_length(self, nonce_len):
rc = botan.botan_cipher_valid_nonce_length(self.__obj, nonce_len)
- return True if rc == 1 else False
+ return rc == 1
def reset(self):
botan.botan_cipher_reset(self.__obj)