Deduplicate URLs, keeping the first occurrence of each unique URL. Returns dict mapping url -> env_section.
(
all_urls: list[ZipUrlInfo],
)
| 906 | |
| 907 | |
| 908 | def _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 | |
| 922 | def _download_and_process_urls( |
no outgoing calls
no test coverage detected