File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -348,19 +348,17 @@ def main(
348
348
arguments = sys .argv [1 :]
349
349
350
350
args = PcapTool ._arguments ().parse_args (arguments )
351
- return (
352
- PcapTool .print_pcap (
353
- files = args .files ,
354
- ports_whitelist = args .whitelist_ports ,
355
- ports_blacklist = args .blacklist_ports ,
356
- print_statistics = not args .no_statistics ,
357
- callback = EmbeddedExtractor ().process_packet
358
- if args .extract_embedded_lc
359
- else PcapTool .debug_packet ,
360
- )
361
- if return_stats
362
- else None
351
+ stats = PcapTool .print_pcap (
352
+ files = args .files ,
353
+ ports_whitelist = args .whitelist_ports ,
354
+ ports_blacklist = args .blacklist_ports ,
355
+ print_statistics = not args .no_statistics ,
356
+ callback = EmbeddedExtractor ().process_packet
357
+ if args .extract_embedded_lc
358
+ else PcapTool .debug_packet ,
363
359
)
360
+ if return_stats :
361
+ return stats
364
362
365
363
366
364
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments