Update os. EX_NOTFOUND not available in Linux (#11461)

This commit is contained in:
Amin Alaee authored and GitHub committed 2024-02-26 09:36:33 +01:00
1 parent 49b1a1a96a
commit 9916efae63
3 files changed
+5 -6

No files matched your search

+3 -1
View File
@@ -239,9 +239,11 @@ if sys.platform != "win32":
if sys.platform != "linux":
from os import chflags as chflags, lchflags as lchflags, lchmod as lchmod
if sys.platform != "linux" and sys.platform != "darwin":
from os import EX_NOTFOUND as EX_NOTFOUND
if sys.platform != "darwin":
from os import (
EX_NOTFOUND as EX_NOTFOUND,
POSIX_FADV_DONTNEED as POSIX_FADV_DONTNEED,
POSIX_FADV_NOREUSE as POSIX_FADV_NOREUSE,
POSIX_FADV_NORMAL as POSIX_FADV_NORMAL,