summaryrefslogtreecommitdiff
path: root/eventlet/green/subprocess.py
diff options
context:
space:
mode:
authorEdward George <edwardgeorge@gmail.com>2013-04-05 23:24:10 +0100
committerSergey Shepelev <temotor@gmail.com>2013-06-10 13:20:09 +0400
commite11157a442accc322d752889d84ddfce7b7fec93 (patch)
tree93ad0d461df6fea75ed76adf4b86d9863d04d9f3 /eventlet/green/subprocess.py
parent632debcea369776881885d33740ffaf2292f6278 (diff)
downloadeventlet-e11157a442accc322d752889d84ddfce7b7fec93.tar.gz
green: subprocess: patch _communicate_with_{poll,select} methods
https://github.com/eventlet/eventlet/pull/24 eventlet.green.subprocess.Popen.communicate() was broken in python 2.7
Diffstat (limited to 'eventlet/green/subprocess.py')
-rw-r--r--eventlet/green/subprocess.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/eventlet/green/subprocess.py b/eventlet/green/subprocess.py
index 4e93836..3bb41c9 100644
--- a/eventlet/green/subprocess.py
+++ b/eventlet/green/subprocess.py
@@ -80,6 +80,15 @@ class Popen(subprocess_orig.Popen):
try:
_communicate = new.function(subprocess_orig.Popen._communicate.im_func.func_code,
globals())
+ try:
+ _communicate_with_select = new.function(
+ subprocess_orig.Popen._communicate_with_select.im_func.func_code,
+ globals())
+ _communicate_with_poll = new.function(
+ subprocess_orig.Popen._communicate_with_poll.im_func.func_code,
+ globals())
+ except AttributeError:
+ pass
except AttributeError:
# 2.4 only has communicate
_communicate = new.function(subprocess_orig.Popen.communicate.im_func.func_code,