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:
parent
507e4322d6
commit
0bc2ad700f
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -160,7 +160,6 @@ disable = [
|
|||
"fixme",
|
||||
"protected-access",
|
||||
"raise-missing-from",
|
||||
"unreachable",
|
||||
"unspecified-encoding",
|
||||
"unused-argument",
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue