Skip to content

Commit

Permalink
string encode("utf-8") - Fix codingo#69
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoles authored Oct 18, 2018
1 parent d9b0354 commit fe8d75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ping_sweeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit fe8d75c

Please sign in to comment.