def domain_match(a: str, b: str) -> bool: if cookiejar.domain_match(a, b): # type: ignore return True elif cookiejar.domain_match(a, b.strip(".")): # type: ignore return True return False
def domain_match(a, b): if cookiejar.domain_match(a, b): return True elif cookiejar.domain_match(a, b.strip(".")): return True return False
def _get_auth_for_host(self, host: str) -> Optional[Tuple[str, str]]: for domain, creds in self.gitcookies.items(): if cookielib.domain_match(host, domain): # type: ignore return creds return None