add os.login_tty for 3.11 (#7800)

python/cpython#29658
This commit is contained in:
Jelle Zijlstra
2022-05-06 22:54:58 -07:00
committed by GitHub
parent 4856064ed7
commit 963b8aa2f7
2 changed files with 7 additions and 0 deletions

View File

@@ -269,6 +269,9 @@ if sys.platform != "win32":
if sys.version_info >= (3, 10):
from os import RWF_APPEND as RWF_APPEND
if sys.version_info >= (3, 11):
from os import login_tty as login_tty
if sys.version_info >= (3, 9):
from os import CLD_KILLED as CLD_KILLED, CLD_STOPPED as CLD_STOPPED, waitstatus_to_exitcode as waitstatus_to_exitcode