Skip to content

Commit

Permalink
Merge pull request #88 from dolevha/indices-improve-runtime
Browse files Browse the repository at this point in the history
indices-improve-runtime
  • Loading branch information
lextm authored Aug 10, 2024
2 parents f3ab7f4 + c992bb8 commit 71b7439
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pysnmp/smi/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@ def nextKey(self, key):

keys = self.__keys

if key in keys:
nextIdx = keys.index(key) + 1

else:
nextIdx = bisect(keys, key)
nextIdx = bisect(keys, key)

if nextIdx < len(keys):
return keys[nextIdx]
Expand Down

0 comments on commit 71b7439

Please sign in to comment.