MCPcopy Index your code
hub / github.com/geekcomputers/Python / is_safe_url

Function is_safe_url

JARVIS/actions.py:53–55  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

51
52
53def is_safe_url(url):
54 parsed = urlparse(url)
55 return parsed.scheme in {"http", "https"} and bool(parsed.netloc)
56
57
58def open_web_target(target):

Callers 1

open_web_targetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected