def is_same_host(self, url):
if url.startswith('<STR_LIT:/>'):<EOL><INDENT>return True<EOL><DEDENT>scheme, host, port = get_host(url)<EOL>if self.port and not port:<EOL><INDENT>port = port_by_scheme.get(scheme)<EOL><DEDENT>elif not self.port and port == port_by_scheme.get(scheme):<EOL><INDENT>port = None<EOL><DEDENT>return (scheme, host, port) == (self.scheme, self.host, self.port)<EOL>
Check if the given ``url`` is a member of the same host as this
connection pool.