Skip to content

Commit

Permalink
indices-improve-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
dolevha committed Jul 24, 2024
1 parent fe238f0 commit c992bb8
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 c992bb8

Please sign in to comment.