Skip to content

Commit

Permalink
Remove long, doesn't exist in Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Mar 2, 2024
1 parent 3898919 commit f24e08f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion av/container/input.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,9 @@ cdef class InputContainer(Container):
# We used to take floats here and assume they were in seconds. This
# was super confusing, so lets go in the complete opposite direction
# and reject non-ints.
if not isinstance(offset, (int, long)):
if not isinstance(offset, int):
raise TypeError("Container.seek only accepts integer offset.", type(offset))

cdef int64_t c_offset = offset

cdef int flags = 0
Expand Down

0 comments on commit f24e08f

Please sign in to comment.