def set_unresponsive(url):
 host = urlparse(url).hostname
 if (host in unresponsive_hosts):
  return
 unresponsive_hosts[host] = True

def set_unresponsive ( url ) : host = urlparse ( url ) . hostname if ( host in unresponsive_hosts ) : return unresponsive_hosts [ host ] = True
marks the host of a given url as unresponsive .