def next(self):
        """
        Returns the next packet in the cap.
        If the capture's keep_packets flag is True, will also keep it in the internal packet list.
        """
        if not self.keep_packets:
            return self._packet_generator.send(None)
        elif len(self._packets) >= self.current_packet:
            packet = self._packet_generator.send(None)
            self._packets += [packet]
        return super(FileCapture, self).next_packet()
dataset/ETHPy150Open KimiNewt/pyshark/src/pyshark/capture/file_capture.py/FileCapture.next/swapped operands of `>=`