diff options
author | Alexandre Jousset <mid@gtmp.org> | 2021-05-28 04:21:28 +0200 |
---|---|---|
committer | Patrick <tingping@tingping.se> | 2021-05-28 19:39:44 -0500 |
commit | 734d888210dc2863fbcd37c408102460476623bb (patch) | |
tree | 41a5b3c3a8b30313c300f1d9fb700c43a75e7238 /plugins | |
parent | 4fc22a978aa281799346fffd14358e6c1fda0f42 (diff) |
python: Fix off by one range
The range goes from 31 to 1 inclusive (#2391).
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/python/python.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/python/python.py b/plugins/python/python.py index 30694802..7bd327e3 100644 --- a/plugins/python/python.py +++ b/plugins/python/python.py @@ -198,7 +198,7 @@ else: # There can be empty entries between non-empty ones so find the actual last value def wordlist_len(words): - for i in range(31, 1, -1): + for i in range(31, 0, -1): if ffi.string(words[i]): return i |