code: def get_host(self, name, default=NoHostError):
          '''
          Get a single host by name.
          '''
  
          if name in self.hosts:
              return self.hosts[name]
  
          if default is NoHostError:
              raise NoHostError('No such host: {0}'.format(name))
  
          return defaulf get_host(self, name, default=NoHostError):
          '''
          Get a single host by name.
          '''
  
          if name in self.hosts:
              return self.hosts[name]
  
          if default is NoHostError:
              raise NoHostError('No such host: {0}'.format(name))
  
          return default
docs: Get a single host by name.