(cc: str)
| 18 | from flags import save_flag, get_flag, main # <1> |
| 19 | |
| 20 | def download_one(cc: str): # <2> |
| 21 | image = get_flag(cc) |
| 22 | save_flag(image, f'{cc}.gif') |
| 23 | print(cc, end=' ', flush=True) |
| 24 | return cc |
| 25 | |
| 26 | def download_many(cc_list: list[str]) -> int: |
| 27 | with futures.ThreadPoolExecutor() as executor: # <3> |