[Python-checkins] cpython: Issue #27652: Expose ESHUTDOWN conditionally

berker.peksag python-checkins at python.org
Sat Jul 30 07:13:35 EDT 2016


https://hg.python.org/cpython/rev/77d16a5dc779
changeset:   102495:77d16a5dc779
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Sat Jul 30 14:14:12 2016 +0300
summary:
  Issue #27652: Expose ESHUTDOWN conditionally

ESHUTDOWN is also exposed conditionally in Modules/errnomodule.c.

Patch by Ed Schouten.

files:
  Objects/exceptions.c |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Objects/exceptions.c b/Objects/exceptions.c
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -2604,7 +2604,9 @@
     ADD_ERRNO(BlockingIOError, EWOULDBLOCK);
     POST_INIT(BrokenPipeError);
     ADD_ERRNO(BrokenPipeError, EPIPE);
+#ifdef ESHUTDOWN
     ADD_ERRNO(BrokenPipeError, ESHUTDOWN);
+#endif
     POST_INIT(ChildProcessError);
     ADD_ERRNO(ChildProcessError, ECHILD);
     POST_INIT(ConnectionAbortedError);

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


More information about the Python-checkins mailing list