aboutsummaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-04-21 10:24:47 -0400
committerJack Lloyd <[email protected]>2019-04-21 10:24:47 -0400
commit14cf876e4f245829b1ca1b361ff65df16bc05ca3 (patch)
tree653234ba43cb2461c7701b8aefa1a698a4706020 /src/python
parent606bd0bf069ccf647881af557db887c9f5ad0eda (diff)
Lint fixes
Diffstat (limited to 'src/python')
-rwxr-xr-xsrc/python/botan2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/python/botan2.py b/src/python/botan2.py
index 657d75e5d..f2dc3bd52 100755
--- a/src/python/botan2.py
+++ b/src/python/botan2.py
@@ -395,7 +395,7 @@ _DLL = _set_prototypes(_load_botan_dll(BOTAN_FFI_VERSION))
#
def _call_fn_returning_sz(fn):
sz = c_size_t(0)
- rc = fn(byref(sz))
+ fn(byref(sz))
return sz.value
def _call_fn_returning_vec(guess, fn):
@@ -1278,13 +1278,13 @@ def nist_key_wrap(kek, key):
output = create_string_buffer(len(key) + 8)
out_len = c_size_t(len(output))
_DLL.botan_key_wrap3394(key, len(key), kek, len(kek), output, byref(out_len))
- return output[0:out_len.value]
+ return output[0:int(out_len.value)]
def nist_key_unwrap(kek, wrapped):
output = create_string_buffer(len(wrapped))
out_len = c_size_t(len(output))
_DLL.botan_key_unwrap3394(wrapped, len(wrapped), kek, len(kek), output, byref(out_len))
- return output[0:out_len.value]
+ return output[0:int(out_len.value)]
# Typedefs for compat with older versions
# Will be removed in a future major release