Addresses Issue #10838: The subprocess now module includes

SubprocessError and TimeoutError in its list of exported names for the
users wild enough to use "from subprocess import *".

MAXFD, mswindows and list2cmdline should be dealt with (renamed or
moved) in separate commits.

Committed at 35,000ft.  Thanks chromebook free gogo wifi passes!
This commit is contained in:
Gregory P. Smith 2015-04-07 15:57:54 -07:00
parent 3c28878e40
commit ace55865c5
3 changed files with 23 additions and 1 deletions

View file

@ -433,7 +433,10 @@ else:
__all__ = ["Popen", "PIPE", "STDOUT", "call", "check_call", "getstatusoutput",
"getoutput", "check_output", "CalledProcessError", "DEVNULL"]
"getoutput", "check_output", "CalledProcessError", "DEVNULL",
"SubprocessError", "TimeoutExpired"]
# NOTE: We intentionally exclude list2cmdline as it is
# considered an internal implementation detail. issue10838.
if mswindows:
from _winapi import (CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP,