mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
refactor: use iterable unpacking instead of concatenation
This commit is contained in:
5 files changed
+9
-9
No files matched your search
@@ -444,7 +444,7 @@ class PacketAnalysisTool(BaseTool):
|
||||
# Build command: tshark -r <file> <user_args>
|
||||
import shlex
|
||||
|
||||
cmd = ["tshark", "-r", pcap_file] + shlex.split(tshark_args)
|
||||
cmd = ["tshark", "-r", pcap_file, *shlex.split(tshark_args)]
|
||||
|
||||
logger.info(f"Running tshark: {' '.join(cmd)}")
|
||||
|
||||
|
||||
Reference in new issue
Block a user