MCPcopy Create free account
hub / github.com/FastLED/FastLED / _is_url

Method _is_url

ci/compiler/platformio_ini.py:1424–1430  ·  view source on GitHub ↗

Check if a value is already a URL (not a shorthand name).

(self, value: str)

Source from the content-addressed store, hash-verified

1422 self._parsed_config = None
1423
1424 def _is_url(self, value: str) -> bool:
1425 """Check if a value is already a URL (not a shorthand name)."""
1426 if not value:
1427 return False
1428 return any(
1429 value.startswith(scheme) for scheme in ("http://", "https://", "file://")
1430 )
1431
1432 def _is_builtin_framework(self, framework_name: str) -> bool:
1433 """Check if a framework is a built-in PlatformIO framework that should not be resolved to URLs."""

Callers 8

_classify_url_typeMethod · 0.95
resolve_platform_urlMethod · 0.95
resolve_framework_urlMethod · 0.95
resolve_platform_urlsMethod · 0.95
optimize_enhancedMethod · 0.95

Calls 1

anyFunction · 0.85

Tested by 1