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

Function _dedupe_urls

ci/compiler/platformio_cache.py:908–919  ·  view source on GitHub ↗

Deduplicate URLs, keeping the first occurrence of each unique URL. Returns dict mapping url -> env_section.

(
    all_urls: list[ZipUrlInfo],
)

Source from the content-addressed store, hash-verified

906
907
908def _dedupe_urls(
909 all_urls: list[ZipUrlInfo],
910) -> dict[str, str]:
911 """
912 Deduplicate URLs, keeping the first occurrence of each unique URL.
913 Returns dict mapping url -> env_section.
914 """
915 unique_urls: dict[str, str] = {}
916 for url_info in all_urls:
917 if url_info.url not in unique_urls:
918 unique_urls[url_info.url] = url_info.section_name
919 return unique_urls
920
921
922def _download_and_process_urls(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected