Kaydet (Commit) 17f03ca9 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

Fix compilation when --without-threads is given #3683

Reviewer: Georg Brandl, Benjamin Peterson
üst 2ba93210
...@@ -12,6 +12,8 @@ What's New in Python 2.6 release candidate 1? ...@@ -12,6 +12,8 @@ What's New in Python 2.6 release candidate 1?
Core and Builtins Core and Builtins
----------------- -----------------
- Issue #3683: Fix compilation when --without-threads is given.
- Issue #3668: Fix a memory leak with the "s*" argument parser in - Issue #3668: Fix a memory leak with the "s*" argument parser in
PyArg_ParseTuple and friends, which occurred when the argument for "s*" PyArg_ParseTuple and friends, which occurred when the argument for "s*"
was correctly parsed but parsing of subsequent arguments failed. was correctly parsed but parsing of subsequent arguments failed.
...@@ -52,8 +54,8 @@ Library ...@@ -52,8 +54,8 @@ Library
- Fixed two format strings in the _collections module. - Fixed two format strings in the _collections module.
- #3703 _fileio.FileIO gave unhelpful error message when trying to open a - Issue #3703: _fileio.FileIO gave unhelpful error message when trying to open a
directory. directory.
Extension Modules Extension Modules
----------------- -----------------
......
...@@ -2029,7 +2029,7 @@ PyImport_ImportModuleNoBlock(const char *name) ...@@ -2029,7 +2029,7 @@ PyImport_ImportModuleNoBlock(const char *name)
else { else {
PyErr_Clear(); PyErr_Clear();
} }
#ifdef WITH_THREAD
/* check the import lock /* check the import lock
* me might be -1 but I ignore the error here, the lock function * me might be -1 but I ignore the error here, the lock function
* takes care of the problem */ * takes care of the problem */
...@@ -2045,6 +2045,9 @@ PyImport_ImportModuleNoBlock(const char *name) ...@@ -2045,6 +2045,9 @@ PyImport_ImportModuleNoBlock(const char *name)
name); name);
return NULL; return NULL;
} }
#else
return PyImport_ImportModule(name);
#endif
} }
/* Forward declarations for helper routines */ /* Forward declarations for helper routines */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment