diff options
| author | Ilya Alekseyev <ialekseev@griddynamics.com> | 2011-04-18 15:25:44 +0400 |
|---|---|---|
| committer | Ilya Alekseyev <ialekseev@griddynamics.com> | 2011-04-18 15:25:44 +0400 |
| commit | 1e02e152aea76d5af30c42708caaee2fb1f05ede (patch) | |
| tree | 57d6498fe5122f291f3e4899b1816487fc5bbff3 /tools/eventlet-patch | |
| parent | 519c885a4e3622417cd78655a211a2f23033d610 (diff) | |
| parent | 9761e7690ab8f13a76c761ba6055372a0d29eaff (diff) | |
trunk merged. conflict resolved.
Diffstat (limited to 'tools/eventlet-patch')
| -rw-r--r-- | tools/eventlet-patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/eventlet-patch b/tools/eventlet-patch new file mode 100644 index 000000000..c87c5f279 --- /dev/null +++ b/tools/eventlet-patch @@ -0,0 +1,24 @@ +# HG changeset patch +# User Soren Hansen <soren@linux2go.dk> +# Date 1297678255 -3600 +# Node ID 4c846d555010bb5a91ab4da78dfe596451313742 +# Parent 5b7e9946c79f005c028eb63207cf5eb7bb21d1c3 +Don't attempt to wrap GreenPipes in GreenPipe + +If the os module is monkeypatched, Python's standard subprocess module +will return greenio.GreenPipe instances for Popen objects' stdin, stdout, +and stderr attributes. However, eventlet.green.subprocess tries to wrap +these attributes in another greenio.GreenPipe, which GreenPipe refuses. + +diff -r 5b7e9946c79f -r 4c846d555010 eventlet/green/subprocess.py +--- a/eventlet/green/subprocess.py Sat Feb 05 13:05:05 2011 -0800 ++++ b/eventlet/green/subprocess.py Mon Feb 14 11:10:55 2011 +0100 +@@ -27,7 +27,7 @@ + # eventlet.processes.Process.run() method. + for attr in "stdin", "stdout", "stderr": + pipe = getattr(self, attr) +- if pipe is not None: ++ if pipe is not None and not type(pipe) == greenio.GreenPipe: + wrapped_pipe = greenio.GreenPipe(pipe, pipe.mode, bufsize) + setattr(self, attr, wrapped_pipe) + __init__.__doc__ = subprocess_orig.Popen.__init__.__doc__ |
