Commit aaf6aba4 authored by Jason Madden's avatar Jason Madden

pep8 whitespace [skip ci]

parent e9438d46
...@@ -27,17 +27,20 @@ import subprocess as __subprocess__ ...@@ -27,17 +27,20 @@ import subprocess as __subprocess__
# Standard functions and classes that this module re-implements in a gevent-aware way. # Standard functions and classes that this module re-implements in a gevent-aware way.
__implements__ = ['Popen', __implements__ = [
'Popen',
'call', 'call',
'check_call', 'check_call',
'check_output'] 'check_output',
]
if PY3: if PY3:
__implements__.append("_posixsubprocess") __implements__.append("_posixsubprocess")
_posixsubprocess = None _posixsubprocess = None
# Standard functions and classes that this module re-imports. # Standard functions and classes that this module re-imports.
__imports__ = ['PIPE', __imports__ = [
'PIPE',
'STDOUT', 'STDOUT',
'CalledProcessError', 'CalledProcessError',
# Windows: # Windows:
...@@ -48,10 +51,12 @@ __imports__ = ['PIPE', ...@@ -48,10 +51,12 @@ __imports__ = ['PIPE',
'STD_ERROR_HANDLE', 'STD_ERROR_HANDLE',
'SW_HIDE', 'SW_HIDE',
'STARTF_USESTDHANDLES', 'STARTF_USESTDHANDLES',
'STARTF_USESHOWWINDOW'] 'STARTF_USESHOWWINDOW',
]
__extra__ = ['MAXFD', __extra__ = [
'MAXFD',
'_eintr_retry_call', '_eintr_retry_call',
'STARTUPINFO', 'STARTUPINFO',
'pywintypes', 'pywintypes',
...@@ -71,20 +76,24 @@ __extra__ = ['MAXFD', ...@@ -71,20 +76,24 @@ __extra__ = ['MAXFD',
'GetVersion', 'GetVersion',
'CreateProcess', 'CreateProcess',
'INFINITE', 'INFINITE',
'TerminateProcess'] 'TerminateProcess',
]
if sys.version_info[:2] >= (3, 3): if sys.version_info[:2] >= (3, 3):
__imports__ += ['DEVNULL', __imports__ += [
'DEVNULL',
'getstatusoutput', 'getstatusoutput',
'getoutput', 'getoutput',
'SubprocessError', 'SubprocessError',
'TimeoutExpired'] 'TimeoutExpired',
]
if sys.version_info[:2] >= (3, 5): if sys.version_info[:2] >= (3, 5):
__imports__ += ['run', # in 3.5, `run` is implemented in terms of `with Popen` __imports__ += [
'run', # in 3.5, `run` is implemented in terms of `with Popen`
'CompletedProcess', 'CompletedProcess',
] ]
# Removed in Python 3.5: # Removed in Python 3.5; this is the exact code that was removed:
# https://hg.python.org/cpython/rev/f98b0a5e5ef5 # https://hg.python.org/cpython/rev/f98b0a5e5ef5
__extra__.remove('MAXFD') __extra__.remove('MAXFD')
try: try:
......
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