Skip to content

Commit 2e5e6fd

Browse files
authored
gh-134745: Use "pymutex" for sys.thread_info on Windows (#141140)
1 parent bcc524f commit 2e5e6fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Python/thread.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,12 @@ PyThread_GetInfo(void)
334334

335335
#ifdef HAVE_PTHREAD_STUBS
336336
value = Py_NewRef(Py_None);
337-
#elif defined(_POSIX_THREADS)
337+
#else
338338
value = PyUnicode_FromString("pymutex");
339339
if (value == NULL) {
340340
Py_DECREF(threadinfo);
341341
return NULL;
342342
}
343-
#else
344-
value = Py_NewRef(Py_None);
345343
#endif
346344
PyStructSequence_SET_ITEM(threadinfo, pos++, value);
347345

0 commit comments

Comments
 (0)