def next_packet(self):
        if len(self._packets) >= self.current_packet:
            raise StopIteration()
        cur_packet = self._packets[self.current_packet]
        self.current_packet += 1
        return cur_packet
dataset/ETHPy150Open KimiNewt/pyshark/src/pyshark/capture/capture.py/Capture.next_packet/swapped operands of `>=`