Fix typo locale -> local (#4201)
This commit is contained in:
parent
12bd83ca8a
commit
0394a735a7
|
|
@ -267,7 +267,7 @@ class MirrorListHandler:
|
||||||
def load_local_mirrors(self) -> None:
|
def load_local_mirrors(self) -> None:
|
||||||
with self._local_mirrorlist.open('r') as fp:
|
with self._local_mirrorlist.open('r') as fp:
|
||||||
mirrorlist = fp.read()
|
mirrorlist = fp.read()
|
||||||
self._status_mappings = self._parse_locale_mirrors(mirrorlist)
|
self._status_mappings = self._parse_local_mirrors(mirrorlist)
|
||||||
|
|
||||||
def get_status_by_region(self, region: str, speed_sort: bool) -> list[MirrorStatusEntryV3]:
|
def get_status_by_region(self, region: str, speed_sort: bool) -> list[MirrorStatusEntryV3]:
|
||||||
mappings = self._mappings()
|
mappings = self._mappings()
|
||||||
|
|
@ -318,7 +318,7 @@ class MirrorListHandler:
|
||||||
|
|
||||||
return sorted_by_regions
|
return sorted_by_regions
|
||||||
|
|
||||||
def _parse_locale_mirrors(self, mirrorlist: str) -> dict[str, list[MirrorStatusEntryV3]]:
|
def _parse_local_mirrors(self, mirrorlist: str) -> dict[str, list[MirrorStatusEntryV3]]:
|
||||||
lines = mirrorlist.splitlines()
|
lines = mirrorlist.splitlines()
|
||||||
|
|
||||||
# remove empty lines
|
# remove empty lines
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue