def _pyshark_read_frame(self):
from pcapkit.toolkit.pyshark import packet2dict, tcp_traceflow<EOL>packet = next(self._extmp)<EOL>self._frnum = int(packet.number)<EOL>self._proto = packet.frame_info.protocols<EOL>if self._flag_v:<EOL><INDENT>print(f'<STR_LIT>')<EOL><DEDENT>frnum = f'<STR_LIT>'<EOL>if not self._flag_q:<EOL><INDENT>info = packet2dict(packet)<EOL>if self._flag_f:<EOL><INDENT>ofile = self._ofile(f'<STR_LIT>')<EOL>ofile(info, name=frnum)<EOL><DEDENT>else:<EOL><INDENT>self._ofile(info, name=frnum)<EOL><DEDENT><DEDENT>if self._flag_d:<EOL><INDENT>setattr(packet, '<STR_LIT>', packet2dict)<EOL>self._frame.append(packet)<EOL><DEDENT>if self._flag_t:<EOL><INDENT>flag, data = tcp_traceflow(packet)<EOL>if flag:<EOL><INDENT>self._trace(data)<EOL><DEDENT><DEDENT>return packet<EOL>
Read frames.