summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/import.c b/Python/import.c
index 6cdb366174..ee59926b4d 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1559,10 +1559,6 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals,
if (initializing == -1)
PyErr_Clear();
if (initializing > 0) {
-#ifdef WITH_THREAD
- _PyImport_AcquireLock();
-#endif
- /* _bootstrap._lock_unlock_module() releases the import lock */
value = _PyObject_CallMethodIdObjArgs(interp->importlib,
&PyId__lock_unlock_module, abs_name,
NULL);