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
This commit is contained in:
correctmost 2024-12-01 02:34:00 -05:00 committed by GitHub
parent 507e4322d6
commit 0bc2ad700f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 2 deletions

View File

@ -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

View File

@ -160,7 +160,6 @@ disable = [
"fixme",
"protected-access",
"raise-missing-from",
"unreachable",
"unspecified-encoding",
"unused-argument",
]