Skip to content

Commit

Permalink
Fixes for Cython 3.0 and Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Jul 18, 2023
1 parent 4969760 commit ef9855f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sophy.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -913,9 +913,9 @@ cdef class Database(object):
for key, value in cursor:
if stop:
if reverse and key < stop:
raise StopIteration
break
elif not reverse and key > stop:
raise StopIteration
break

yield (key, value)

Expand Down

0 comments on commit ef9855f

Please sign in to comment.