Commit 8b8e7f46 authored by Brian Curtin's avatar Brian Curtin

Further fix #7838. CREATE_NEW_CONSOLE was exposed, but none of the

constants to be used for STARTUPINFO were exposed due to the change.
parent 2ee88355
...@@ -344,7 +344,6 @@ class CalledProcessError(Exception): ...@@ -344,7 +344,6 @@ class CalledProcessError(Exception):
if mswindows: if mswindows:
from _subprocess import CREATE_NEW_CONSOLE
import threading import threading
import msvcrt import msvcrt
import _subprocess import _subprocess
...@@ -372,7 +371,15 @@ __all__ = ["Popen", "PIPE", "STDOUT", "call", "check_call", "getstatusoutput", ...@@ -372,7 +371,15 @@ __all__ = ["Popen", "PIPE", "STDOUT", "call", "check_call", "getstatusoutput",
"getoutput", "check_output", "CalledProcessError"] "getoutput", "check_output", "CalledProcessError"]
if mswindows: if mswindows:
__all__.append("CREATE_NEW_CONSOLE") from _subprocess import (CREATE_NEW_CONSOLE,
STD_INPUT_HANDLE, STD_OUTPUT_HANDLE,
STD_ERROR_HANDLE, SW_HIDE,
STARTF_USESTDHANDLES, STARTF_USESHOWWINDOW)
__all__.extend(["CREATE_NEW_CONSOLE",
"STD_INPUT_HANDLE", "STD_OUTPUT_HANDLE",
"STD_ERROR_HANDLE", "SW_HIDE",
"STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW"])
try: try:
MAXFD = os.sysconf("SC_OPEN_MAX") MAXFD = os.sysconf("SC_OPEN_MAX")
except: except:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment