Commit fc73e9af authored by Jason Madden's avatar Jason Madden

Patch subprocess by default. Fixes #466.

parent 65cb38de
......@@ -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
-------------
......
......@@ -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=False, sys=False, aggressive=True, Event=False):
subprocess=True, 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:
......
......@@ -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()
......
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