Advertisement
Guest User

Untitled

a guest
May 24th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def read_static_hostnames(path=HOSTS_FILE):
  2. with open(path) as f:
  3. static_hostnames = [i.strip().split() for i in f.readlines() if not i.strip().startswith('#')]
  4. return static_hostnames
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement