Skip to content

Commit 2c11ab0

Browse files
committed
gh-152798: Revert sys.thread_info.lock to 'semaphore'/None for consistency
1 parent 97fc83e commit 2c11ab0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Python/thread.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,15 @@ PyThread_GetInfo(void)
335335
#ifdef HAVE_PTHREAD_STUBS
336336
value = Py_NewRef(Py_None);
337337
#else
338-
value = PyUnicode_FromString("pymutex");
338+
#ifdef MS_WINDOWS
339+
value = Py_NewRef(Py_None);
340+
#else
341+
value = PyUnicode_FromString("semaphore");
339342
if (value == NULL) {
340343
Py_DECREF(threadinfo);
341344
return NULL;
342345
}
346+
#endif
343347
#endif
344348
PyStructSequence_SET_ITEM(threadinfo, pos++, value);
345349

0 commit comments

Comments
 (0)