t.n.hosts : module documentation

Part of twisted.names View Source

hosts(5) support.
Function searchFileFor Grep given file, which is in hosts(5) standard format, for an address entry with a given name.
Class Resolver A resolver that services hosts(5) format files.
def searchFileFor(file, name): (source)
Grep given file, which is in hosts(5) standard format, for an address entry with a given name.
ParametersfileThe name of the hosts(5)-format file to search.
nameThe name to search for. (type: str )
ReturnsNone if the name is not found in the file, otherwise a str giving the address in the file associated with the name.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:27:37.