From 0bc2ad700fd6d48d7f9ff30cfd45f2878e8f5fab Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sun, 1 Dec 2024 02:34:00 -0500 Subject: [PATCH] Enable the "unreachable" pylint warning and remove unused code (#2987) The os.fsync call causes an "invalid argument" OSError when it actually runs, so it has been removed altogether. Closes #2773 --- archinstall/lib/general.py | 1 - pyproject.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index 090b5148..2f430e1d 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -220,7 +220,6 @@ class SysCommandWorker: if self.child_fd: return os.write(self.child_fd, data + (b'\n' if line_ending else b'')) - os.fsync(self.child_fd) return 0 diff --git a/pyproject.toml b/pyproject.toml index 819517da..b494a042 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -160,7 +160,6 @@ disable = [ "fixme", "protected-access", "raise-missing-from", - "unreachable", "unspecified-encoding", "unused-argument", ]