def host(self, host):
if host in self.hosts_:<EOL><INDENT>vals = defaultdict(list)<EOL>for k, value in [(x.key.lower(), x.value) for x in self.lines_<EOL>if x.host == host and x.key.lower() != "<STR_LIT:host>"]:<EOL><INDENT>vals[k].append(value)<EOL><DEDENT>flatten = lambda x: x[<NUM_LIT:0>] if len(x) == <NUM_LIT:1> else x<EOL>return {k: flatten(v) for k, v in vals.items()}<EOL><DEDENT>return {}<EOL>
Return the configuration of a specific host as a dictionary.

Dictionary always contains lowercase versions of the attribute names.

Parameters
----------
host : the host to return values for.

Returns
-------
dict of key value pairs, excluding "Host", empty map if host is not found.