summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorJames <james_g_k@hotmail.co.uk>2017-11-08 14:18:59 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-11-08 14:18:59 (GMT)
commitb5d9e0811463f3b28ba355a9e0bee7f1682854e3 (patch)
tree7e69240929fc485f37e70c5d5336d7d873755ed5 /Lib/subprocess.py
parent54cc0c0789af8ff2396cb19095b7ab269f2bc06c (diff)
downloadcpython-b5d9e0811463f3b28ba355a9e0bee7f1682854e3.zip
cpython-b5d9e0811463f3b28ba355a9e0bee7f1682854e3.tar.gz
cpython-b5d9e0811463f3b28ba355a9e0bee7f1682854e3.tar.bz2
bpo-31884 subprocess: add Windows constants for process priority (#4150)
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index f6d03f8..43be1f9 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -164,13 +164,23 @@ if _mswindows:
from _winapi import (CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP,
STD_INPUT_HANDLE, STD_OUTPUT_HANDLE,
STD_ERROR_HANDLE, SW_HIDE,
- STARTF_USESTDHANDLES, STARTF_USESHOWWINDOW)
+ STARTF_USESTDHANDLES, STARTF_USESHOWWINDOW,
+ ABOVE_NORMAL_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS,
+ HIGH_PRIORITY_CLASS, IDLE_PRIORITY_CLASS,
+ NORMAL_PRIORITY_CLASS, REALTIME_PRIORITY_CLASS,
+ CREATE_NO_WINDOW, DETACHED_PROCESS,
+ CREATE_DEFAULT_ERROR_MODE, CREATE_BREAKAWAY_FROM_JOB)
__all__.extend(["CREATE_NEW_CONSOLE", "CREATE_NEW_PROCESS_GROUP",
"STD_INPUT_HANDLE", "STD_OUTPUT_HANDLE",
"STD_ERROR_HANDLE", "SW_HIDE",
"STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW",
- "STARTUPINFO"])
+ "STARTUPINFO",
+ "ABOVE_NORMAL_PRIORITY_CLASS", "BELOW_NORMAL_PRIORITY_CLASS",
+ "HIGH_PRIORITY_CLASS", "IDLE_PRIORITY_CLASS",
+ "NORMAL_PRIORITY_CLASS", "REALTIME_PRIORITY_CLASS",
+ "CREATE_NO_WINDOW", "DETACHED_PROCESS",
+ "CREATE_DEFAULT_ERROR_MODE", "CREATE_BREAKAWAY_FROM_JOB"])
class Handle(int):
closed = False