def __repr__(self):
        if isinstance(self.packet, str):
            try:
                return self.raw()
            except __HOLE__:
                return str(self.packet)
        else:
            return str(self.packet)
dataset/ETHPy150Open kisom/pypcapfile/pcapfile/structs.py/pcap_packet.__repr__