From fe8d75c03c13bafacd4385f9622246d148128825 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Thu, 18 Oct 2018 18:29:41 +1100 Subject: [PATCH] string encode("utf-8") - Fix #69 --- lib/ping_sweeper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ping_sweeper.py b/lib/ping_sweeper.py index a9fe233..3bea501 100644 --- a/lib/ping_sweeper.py +++ b/lib/ping_sweeper.py @@ -24,7 +24,7 @@ def call_nmap_sweep(target_hosts): SWEEP = "nmap -n -sP %s" % (target_hosts) results = subprocess.check_output(SWEEP, shell=True) - lines = str(results, "utf-8").split("\n") + lines = str(results).encode("utf-8").split("\n") return lines