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
fc73e9af
Commit
fc73e9af
authored
Jun 26, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch subprocess by default. Fixes #466.
parent
65cb38de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
changelog.rst
changelog.rst
+1
-0
gevent/monkey.py
gevent/monkey.py
+1
-1
gevent/subprocess.py
gevent/subprocess.py
+2
-2
No files found.
changelog.rst
View file @
fc73e9af
...
...
@@ -41,6 +41,7 @@ Unreleased
return True, supporting its use-case as an "infinite" or unbounded
semaphore providing no exclusing, and allowing the idiom ``if
sem.acquire(): ...``. PR #544 by Mouad Benchchaoui.
- Patch ``subprocess`` by default in ``gevent.monkey.patch_all``. See #446.
Release 1.0.2
-------------
...
...
gevent/monkey.py
View file @
fc73e9af
...
...
@@ -235,7 +235,7 @@ def patch_subprocess():
def
patch_all
(
socket
=
True
,
dns
=
True
,
time
=
True
,
select
=
True
,
thread
=
True
,
os
=
True
,
ssl
=
True
,
httplib
=
False
,
subprocess
=
Fals
e
,
sys
=
False
,
aggressive
=
True
,
Event
=
False
):
subprocess
=
Tru
e
,
sys
=
False
,
aggressive
=
True
,
Event
=
False
):
"""Do all of the default monkey patching (calls every other function in this module."""
# order is important
if
os
:
...
...
gevent/subprocess.py
View file @
fc73e9af
...
...
@@ -307,8 +307,8 @@ class Popen(object):
self
.
stderr
.
close
()
self
.
wait
()
return
(
None
if
stdout
is
None
else
stdout
.
value
or
''
,
None
if
stderr
is
None
else
stderr
.
value
or
''
)
return
(
None
if
stdout
is
None
else
stdout
.
value
or
b
''
,
None
if
stderr
is
None
else
stderr
.
value
or
b
''
)
def
poll
(
self
):
return
self
.
_internal_poll
()
...
...
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