File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -447,8 +447,10 @@ if sys.platform != "win32" and sys.version_info >= (3, 13):
447447 __all__ += ["grantpt" , "posix_openpt" , "ptsname" , "unlockpt" ]
448448if sys .platform != "win32" and sys .version_info >= (3 , 11 ):
449449 __all__ += ["login_tty" ]
450- if sys .platform != "win32" :
450+ if sys .platform != "win32" and sys . version_info >= ( 3 , 15 ) :
451451 __all__ += ["NODEV" , "O_FSYNC" ]
452+ elif sys .platform != "win32" :
453+ __all__ += ["O_FSYNC" ]
452454if sys .platform != "darwin" and sys .platform != "win32" :
453455 __all__ += [
454456 "POSIX_FADV_DONTNEED" ,
@@ -667,8 +669,10 @@ if sys.platform == "darwin":
667669 O_NOFOLLOW_ANY : Final [int ]
668670 O_SYMLINK : Final [int ]
669671
670- if sys .platform != "win32" :
672+ if sys .platform != "win32" and sys . version_info >= ( 3 , 15 ) :
671673 NODEV : Final [int ]
674+
675+ if sys .platform != "win32" :
672676 O_FSYNC : Final [int ]
673677
674678if sys .platform != "linux" and sys .platform != "win32" and sys .version_info >= (3 , 13 ):
Original file line number Diff line number Diff line change @@ -263,7 +263,8 @@ if sys.platform != "win32":
263263 if sys .platform != "linux" and sys .version_info >= (3 , 13 ):
264264 from os import O_EXEC as O_EXEC , O_SEARCH as O_SEARCH
265265
266- from os import NODEV as NODEV
266+ if sys .version_info >= (3 , 15 ):
267+ from os import NODEV as NODEV
267268
268269 if sys .platform != "darwin" :
269270 from os import (
You can’t perform that action at this time.
0 commit comments