Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
aaf6aba4
Commit
aaf6aba4
authored
Sep 15, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pep8 whitespace [skip ci]
parent
e9438d46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
47 deletions
+56
-47
gevent/subprocess.py
gevent/subprocess.py
+56
-47
No files found.
gevent/subprocess.py
View file @
aaf6aba4
...
...
@@ -27,64 +27,73 @@ import subprocess as __subprocess__
# Standard functions and classes that this module re-implements in a gevent-aware way.
__implements__
=
[
'Popen'
,
'call'
,
'check_call'
,
'check_output'
]
__implements__
=
[
'Popen'
,
'call'
,
'check_call'
,
'check_output'
,
]
if
PY3
:
__implements__
.
append
(
"_posixsubprocess"
)
_posixsubprocess
=
None
# Standard functions and classes that this module re-imports.
__imports__
=
[
'PIPE'
,
'STDOUT'
,
'CalledProcessError'
,
# Windows:
'CREATE_NEW_CONSOLE'
,
'CREATE_NEW_PROCESS_GROUP'
,
'STD_INPUT_HANDLE'
,
'STD_OUTPUT_HANDLE'
,
'STD_ERROR_HANDLE'
,
'SW_HIDE'
,
'STARTF_USESTDHANDLES'
,
'STARTF_USESHOWWINDOW'
]
__extra__
=
[
'MAXFD'
,
'_eintr_retry_call'
,
'STARTUPINFO'
,
'pywintypes'
,
'list2cmdline'
,
'_subprocess'
,
# Python 2.5 does not have _subprocess, so we don't use it
# XXX We don't run on Py 2.5 anymore; can/could/should we use _subprocess?
'WAIT_OBJECT_0'
,
'WaitForSingleObject'
,
'GetExitCodeProcess'
,
'GetStdHandle'
,
'CreatePipe'
,
'DuplicateHandle'
,
'GetCurrentProcess'
,
'DUPLICATE_SAME_ACCESS'
,
'GetModuleFileName'
,
'GetVersion'
,
'CreateProcess'
,
'INFINITE'
,
'TerminateProcess'
]
__imports__
=
[
'PIPE'
,
'STDOUT'
,
'CalledProcessError'
,
# Windows:
'CREATE_NEW_CONSOLE'
,
'CREATE_NEW_PROCESS_GROUP'
,
'STD_INPUT_HANDLE'
,
'STD_OUTPUT_HANDLE'
,
'STD_ERROR_HANDLE'
,
'SW_HIDE'
,
'STARTF_USESTDHANDLES'
,
'STARTF_USESHOWWINDOW'
,
]
__extra__
=
[
'MAXFD'
,
'_eintr_retry_call'
,
'STARTUPINFO'
,
'pywintypes'
,
'list2cmdline'
,
'_subprocess'
,
# Python 2.5 does not have _subprocess, so we don't use it
# XXX We don't run on Py 2.5 anymore; can/could/should we use _subprocess?
'WAIT_OBJECT_0'
,
'WaitForSingleObject'
,
'GetExitCodeProcess'
,
'GetStdHandle'
,
'CreatePipe'
,
'DuplicateHandle'
,
'GetCurrentProcess'
,
'DUPLICATE_SAME_ACCESS'
,
'GetModuleFileName'
,
'GetVersion'
,
'CreateProcess'
,
'INFINITE'
,
'TerminateProcess'
,
]
if
sys
.
version_info
[:
2
]
>=
(
3
,
3
):
__imports__
+=
[
'DEVNULL'
,
'getstatusoutput'
,
'getoutput'
,
'SubprocessError'
,
'TimeoutExpired'
]
__imports__
+=
[
'DEVNULL'
,
'getstatusoutput'
,
'getoutput'
,
'SubprocessError'
,
'TimeoutExpired'
,
]
if
sys
.
version_info
[:
2
]
>=
(
3
,
5
):
__imports__
+=
[
'run'
,
# in 3.5, `run` is implemented in terms of `with Popen`
'CompletedProcess'
,
__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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment