Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def read_static_hostnames(path=HOSTS_FILE):
- with open(path) as f:
- static_hostnames = [i.strip().split() for i in f.readlines() if not i.strip().startswith('#')]
- return static_hostnames
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement