[Python-checkins] cpython (merge 3.2 -> default): Merge with 3.2 for #11006.

ross.lagerwall python-checkins at python.org
Thu Dec 22 08:21:09 CET 2011


http://hg.python.org/cpython/rev/b1b35583967a
changeset:   74126:b1b35583967a
parent:      74124:4bbc3ffa1207
parent:      74125:dc913f73a7fb
user:        Ross Lagerwall <rosslagerwall at gmail.com>
date:        Thu Dec 22 09:10:47 2011 +0200
summary:
  Merge with 3.2 for #11006.

files:
  Misc/NEWS                  |  2 ++
  Modules/_posixsubprocess.c |  6 ------
  2 files changed, 2 insertions(+), 6 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -419,6 +419,8 @@
 Library
 -------
 
+- Issue #11006: Don't issue low level warning in subprocess when pipe2() fails.
+
 - Issue #13620: Support for Chrome browser in webbrowser.py Patch contributed
   by Arnaud Calmettes.
 
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c
--- a/Modules/_posixsubprocess.c
+++ b/Modules/_posixsubprocess.c
@@ -442,12 +442,6 @@
     Py_END_ALLOW_THREADS
     if (res != 0 && errno == ENOSYS)
     {
-        if (PyErr_WarnEx(
-                PyExc_RuntimeWarning,
-                "pipe2 set errno ENOSYS; falling "
-                "back to non-atomic pipe+fcntl.", 1) != 0) {
-            return NULL;
-        }
         {
 #endif
         /* We hold the GIL which offers some protection from other code calling

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list