Advertisement
djsmiley2k

wtf python why.

May 2nd, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. host = child.before
  2. hostname3 = host.decode("utf-8")
  3. hostname2 = hostname3.split("\r")
  4. hostname1 = hostname2[1]
  5. hostname = hostname1[:2]
  6. print ("Hostname is %s" %(hostname))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement