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

Function liberal_is_HDN

Lib/http/cookiejar.py:590–598  ·  view source on GitHub ↗

Return True if text is a sort-of-like a host domain name. For accepting/blocking domains.

(text)

Source from the content-addressed store, hash-verified

588 return True
589
590def liberal_is_HDN(text):
591 """Return True if text is a sort-of-like a host domain name.
592
593 For accepting/blocking domains.
594
595 """
596 if IPV4_RE.search(text):
597 return False
598 return True
599
600def user_domain_match(A, B):
601 """For blocking/accepting domains.

Callers 1

user_domain_matchFunction · 0.85

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…