Skip to content

Commit 6bda550

Browse files
authored
Remove os.system deprecated ignores (#4819)
1 parent b4737ce commit 6bda550

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎archinstall/lib/installer.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ def set_keyboard_language(self, language: str) -> bool:
20642064
# In accordance with https://github.com/archlinux/archinstall/issues/107#issuecomment-841701968
20652065
# Setting an empty keymap first, allows the subsequent call to set layout for both console and x11.
20662066
with Boot(self.target) as session:
2067-
os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""') # type: ignore[deprecated]
2067+
os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""')
20682068

20692069
try:
20702070
session.sys_command(['localectl', 'set-keymap', language])
@@ -2130,7 +2130,7 @@ def _service_state(self, service_name: str) -> str:
21302130

21312131

21322132
def accessibility_tools_in_use() -> bool:
2133-
return os.system('systemctl is-active --quiet espeakup.service') == 0 # type: ignore[deprecated]
2133+
return os.system('systemctl is-active --quiet espeakup.service') == 0
21342134

21352135

21362136
def run_custom_user_commands(commands: list[str], installation: Installer) -> None:

‎archinstall/scripts/guided.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def perform_installation(
193193
case PostInstallationAction.EXIT:
194194
pass
195195
case PostInstallationAction.REBOOT:
196-
_ = os.system('reboot') # type: ignore[deprecated]
196+
os.system('reboot')
197197
case PostInstallationAction.CHROOT:
198198
try:
199199
installation.drop_to_shell()

0 commit comments

Comments
 (0)