Skip to content

Commit

Permalink
Merge pull request codingo#70 from bcoles/patch-1
Browse files Browse the repository at this point in the history
string encode("utf-8") - Fix codingo#69
  • Loading branch information
codingo authored Oct 18, 2018
2 parents d9b0354 + fe8d75c commit e1ef658
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 e1ef658

Please sign in to comment.