aboutsummaryrefslogtreecommitdiffstats
path: root/src/python/botan2.py
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-08-21 16:09:25 -0400
committerJack Lloyd <[email protected]>2018-08-21 16:09:25 -0400
commit2fc2598ebab23aa63f7be30c8a2eff6afb262fb3 (patch)
tree4c48b6874410d407d72f895098003e5eaf6aafb5 /src/python/botan2.py
parenta451e7db1071c14bb0cad801b972b0d11c91d5f6 (diff)
Lint fixes
Diffstat (limited to 'src/python/botan2.py')
-rwxr-xr-xsrc/python/botan2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/python/botan2.py b/src/python/botan2.py
index 715a60627..273fe3f46 100755
--- a/src/python/botan2.py
+++ b/src/python/botan2.py
@@ -1347,12 +1347,12 @@ class HOTP(object):
return code.value
def check(self, code, counter, resync_range=0):
- next = c_uint64(0)
- rc = botan.botan_hotp_check(self.__obj, byref(next), code, counter, resync_range)
+ next_ctr = c_uint64(0)
+ rc = botan.botan_hotp_check(self.__obj, byref(next_ctr), code, counter, resync_range)
if rc == 0:
- return (True,next.value)
+ return (True, next_ctr.value)
else:
- return (False,counter)
+ return (False, counter)
# Typedefs for compat with older versions
cipher = SymmetricCipher # pylint: disable=invalid-name