[Python-checkins] cpython (3.6): Issue #28480: Avoid label at end of compound statement --without-threads

martin.panter python-checkins at python.org
Thu Oct 20 01:31:10 EDT 2016


https://hg.python.org/cpython/rev/9316b4ebf3fa
changeset:   104576:9316b4ebf3fa
branch:      3.6
parent:      104573:39ac5093bdbb
user:        Martin Panter <vadmium+py at gmail.com>
date:        Thu Oct 20 00:48:23 2016 +0000
summary:
  Issue #28480: Avoid label at end of compound statement --without-threads

Based on patch by Masayuki Yamamoto.

files:
  Misc/NEWS              |  3 +++
  Modules/socketmodule.c |  1 +
  2 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -20,6 +20,9 @@
 Library
 -------
 
+- Issue #28480: Fix error building socket module when multithreading is
+  disabled.
+
 - Issue #24452: Make webbrowser support Chrome on Mac OS X.
 
 - Issue #20766: Fix references leaked by pdb in the handling of SIGINT
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -664,6 +664,7 @@
     result = 0;
 
   done:
+    ;  /* necessary for --without-threads flag */
     Py_END_ALLOW_THREADS
 
     if (result) {

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


More information about the Python-checkins mailing list