Skip to content

Commit e1ef658

Browse files
authored
Merge pull request #70 from bcoles/patch-1
string encode("utf-8") - Fix #69
2 parents d9b0354 + fe8d75c commit e1ef658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ping_sweeper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def call_nmap_sweep(target_hosts):
2424
SWEEP = "nmap -n -sP %s" % (target_hosts)
2525

2626
results = subprocess.check_output(SWEEP, shell=True)
27-
lines = str(results, "utf-8").split("\n")
27+
lines = str(results).encode("utf-8").split("\n")
2828
return lines
2929

3030

0 commit comments

Comments
 (0)