Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-18 09:10:24 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-18 09:36:22 -0400
commitda0da729c5f3ef0aaf832229901dda221de654ab (patch)
tree5350a481808ad376400eb9fe2baa36b9e70abe30 /archinstall/lib
parent9bf71da867554f956d370694eb32b6392e352a06 (diff)
Proofreading: Fix misc. spelling and grammar issues
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/mirrors.py4
-rw-r--r--archinstall/lib/networking.py2
-rw-r--r--archinstall/lib/output.py4
-rw-r--r--archinstall/lib/user_interaction.py4
4 files changed, 7 insertions, 7 deletions
diff --git a/archinstall/lib/mirrors.py b/archinstall/lib/mirrors.py
index 5050df7d..4ef4fa49 100644
--- a/archinstall/lib/mirrors.py
+++ b/archinstall/lib/mirrors.py
@@ -10,8 +10,8 @@ def filter_mirrors_by_region(regions, destination='/etc/pacman.d/mirrorlist', tm
This function will change the active mirrors on the live medium by
filtering which regions are active based on `regions`.
- :param region: A series of country codes separated by `,`. For instance `SE,US` for sweden and United States.
- :type region: str
+ :param regions: A series of country codes separated by `,`. For instance `SE,US` for sweden and United States.
+ :type regions: str
"""
region_list = []
for region in regions.split(','):
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py
index 8a2f0edd..dbd510dd 100644
--- a/archinstall/lib/networking.py
+++ b/archinstall/lib/networking.py
@@ -31,7 +31,7 @@ def check_mirror_reachable():
check = SysCommand("pacman -Sy")
return check.exit_code == 0
except:
- return False
+ return False
def enrich_iface_types(interfaces: dict):
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index 8bc6cacb..20b0df8d 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -26,7 +26,7 @@ class Journald(dict):
except ModuleNotFoundError:
return False
- # For backwards compability, convert old style log-levels
+ # For backwards compatibility, convert old style log-levels
# to logging levels (and warn about deprecated usage)
# There's some code re-usage here but that should be fine.
# TODO: Remove these in a few versions:
@@ -135,7 +135,7 @@ def log(*args, **kwargs):
# Unless the level is higher than we've decided to output interactively.
# (Remember, log files still get *ALL* the output despite level restrictions)
if 'level' in kwargs:
- # For backwards compability, convert old style log-levels
+ # For backwards compatibility, convert old style log-levels
# to logging levels (and warn about deprecated usage)
# There's some code re-usage here but that should be fine.
# TODO: Remove these in a few versions:
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index c640cb83..5f849607 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -242,7 +242,7 @@ class MiniCurses:
if (mapped_char := mapper.get(char, None)) == 'BACKSPACE':
if self._cursor_x <= self.input_pos:
- # Don't backspace futher back than the cursor start position during input
+ # Don't backspace further back than the cursor start position during input
return True
# Move back to the current known position (BACKSPACE doesn't updated x-pos)
sys.stdout.flush()
@@ -694,7 +694,7 @@ def select_mirror_regions(mirrors, show_top_mirrors=True):
def select_driver(options=AVAILABLE_GFX_DRIVERS):
"""
- Some what convoluted function, which's job is simple.
+ Some what convoluted function, whose job is simple.
Select a graphics driver from a pre-defined set of popular options.
(The template xorg is for beginner users, not advanced, and should