Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def inmem_capture():
return pyshark.InMemCapture()
def TsharkInfo(self):
"""If pyshark is installed, displaying info on mouse event.
"""
if (flag_pyshark):
capture = pyshark.InMemCapture(only_summaries=True)
l = []
for i in share.list_packet:
l.append(bytes(i.packet))
capture.feed_packets(l)
share.list_TsharkInfo = []
for i in capture:
share.list_TsharkInfo.append(i.info)