def __init__(self, path=None):
        """
        Initialise an instance of a hosts file
        :param path: The filesystem path of the hosts file to manage
        :return: None
        """

        self.entries = []
        if path:
            self.hosts_path = path
        else:
            self.hosts_path = self.determine_hosts_path()
        self.populate_entries()
def __init__ ( self , path = None ) : self . entries = [ ] if path : self . hosts_path = path else : self . hosts_path = self . determine_hosts_path ( ) self . populate_entries ( )
Initialise an instance of a hosts file
        :param path: The filesystem path of the hosts file to manage
        :return: None