MCPcopy Index your code
hub / github.com/python/cpython / is_blocked

Method is_blocked

Lib/http/cookiejar.py:927–931  ·  view source on GitHub ↗
(self, domain)

Source from the content-addressed store, hash-verified

925 self._blocked_domains = tuple(blocked_domains)
926
927 def is_blocked(self, domain):
928 for blocked_domain in self._blocked_domains:
929 if user_domain_match(domain, blocked_domain):
930 return True
931 return False
932
933 def allowed_domains(self):
934 """Return None, or the sequence of allowed domains (as a tuple)."""

Callers 2

set_ok_domainMethod · 0.95
domain_return_okMethod · 0.95

Calls 1

user_domain_matchFunction · 0.85

Tested by

no test coverage detected