Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-06-02 00:08:45 +0200
committerAnton Hvornum <anton@hvornum.se>2021-06-02 00:08:45 +0200
commit434ebb3419f6d614c753729498337abb738481be (patch)
treeb7d08d79ebc1bc1ac582fe53fa6337b52fa23c2d /archinstall/lib
parent0901723ff483867558fe49c892c0c825942e1ac3 (diff)
Added docstrings
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/mirrors.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/mirrors.py b/archinstall/lib/mirrors.py
index 44c73132..95fb5ac6 100644
--- a/archinstall/lib/mirrors.py
+++ b/archinstall/lib/mirrors.py
@@ -1,5 +1,6 @@
import urllib.error
import urllib.request
+from typing import Union
from .general import *
from .output import log
@@ -50,7 +51,7 @@ def sort_mirrorlist(raw_data :bytes, sort_order=["https", "http"]) -> bytes:
return new_raw_data
-def filter_mirrors_by_region(regions, destination='/etc/pacman.d/mirrorlist', sort_order=["https", "http"], *args, **kwargs):
+def filter_mirrors_by_region(regions, destination='/etc/pacman.d/mirrorlist', sort_order=["https", "http"], *args, **kwargs) -> Union[bool, bytes]:
"""
This function will change the active mirrors on the live medium by
filtering which regions are active based on `regions`.