mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
Update os. EX_NOTFOUND not available in Linux (#11461)
This commit is contained in:
@@ -308,7 +308,8 @@ if sys.platform != "win32":
|
||||
EX_NOPERM: int
|
||||
EX_CONFIG: int
|
||||
|
||||
if sys.platform != "win32" and sys.platform != "darwin":
|
||||
# Exists on some Unix platforms, e.g. Solaris.
|
||||
if sys.platform != "win32" and sys.platform != "darwin" and sys.platform != "linux":
|
||||
EX_NOTFOUND: int
|
||||
|
||||
P_NOWAIT: int
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user