From f24e08f883c41264536c9e4cc4ca5012f51150e1 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Sat, 2 Mar 2024 03:57:47 -0500 Subject: [PATCH] Remove long, doesn't exist in Python 3 --- av/container/input.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/av/container/input.pyx b/av/container/input.pyx index 28867cf9b..47cd98c4d 100644 --- a/av/container/input.pyx +++ b/av/container/input.pyx @@ -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