Commit aaf6aba4 authored by Jason Madden's avatar Jason Madden

pep8 whitespace [skip ci]

parent e9438d46
......@@ -27,17 +27,20 @@ import subprocess as __subprocess__
# Standard functions and classes that this module re-implements in a gevent-aware way.
__implements__ = ['Popen',
__implements__ = [
'Popen',
'call',
'check_call',
'check_output']
'check_output',
]
if PY3:
__implements__.append("_posixsubprocess")
_posixsubprocess = None
# Standard functions and classes that this module re-imports.
__imports__ = ['PIPE',
__imports__ = [
'PIPE',
'STDOUT',
'CalledProcessError',
# Windows:
......@@ -48,10 +51,12 @@ __imports__ = ['PIPE',
'STD_ERROR_HANDLE',
'SW_HIDE',
'STARTF_USESTDHANDLES',
'STARTF_USESHOWWINDOW']
'STARTF_USESHOWWINDOW',
]
__extra__ = ['MAXFD',
__extra__ = [
'MAXFD',
'_eintr_retry_call',
'STARTUPINFO',
'pywintypes',
......@@ -71,20 +76,24 @@ __extra__ = ['MAXFD',
'GetVersion',
'CreateProcess',
'INFINITE',
'TerminateProcess']
'TerminateProcess',
]
if sys.version_info[:2] >= (3, 3):
__imports__ += ['DEVNULL',
__imports__ += [
'DEVNULL',
'getstatusoutput',
'getoutput',
'SubprocessError',
'TimeoutExpired']
'TimeoutExpired',
]
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',
]
# 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
__extra__.remove('MAXFD')
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