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

Method set_blocked_domains

Lib/http/cookiejar.py:923–925  ·  view source on GitHub ↗

Set the sequence of blocked domains.

(self, blocked_domains)

Source from the content-addressed store, hash-verified

921 """Return the sequence of blocked domains (as a tuple)."""
922 return self._blocked_domains
923 def set_blocked_domains(self, blocked_domains):
924 """Set the sequence of blocked domains."""
925 self._blocked_domains = tuple(blocked_domains)
926
927 def is_blocked(self, domain):
928 for blocked_domain in self._blocked_domains:

Callers 1

test_domain_blockMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_domain_blockMethod · 0.76