Improve string formatting v6 (#33698)

This commit is contained in:
springstan authored and GitHub committed 2020-04-07 23:14:28 +02:00
1 parent d7e3b0b755
commit eae21be5b9
43 files changed
+81 -87

No files matched your search

@@ -109,7 +109,7 @@ class NmapDeviceScanner(DeviceScanner):
last_results = []
exclude_hosts = self.exclude
if exclude_hosts:
options += " --exclude {}".format(",".join(exclude_hosts))
options += f" --exclude {','.join(exclude_hosts)}"
try:
result = scanner.scan(hosts=" ".join(self.hosts), arguments=options)