File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -2029,13 +2029,6 @@ An obsolete synonym of allocate_lock().");
2029
2029
static PyObject *
2030
2030
thread_get_ident (PyObject * self , PyObject * Py_UNUSED (ignored ))
2031
2031
{
2032
- /* Work around an issue with the main thread ID to failing comparison checks
2033
- due to sign extension on some Linux libc implemenations. Can be removed
2034
- when thread identifiers are reworked. */
2035
- #if SIZEOF_LONG < SIZEOF_LONG_LONG && defined(__linux__ ) && !defined(__GLIBC__ )
2036
- if (_Py_IsMainThread ())
2037
- return PyLong_FromUnsignedLong (_PyRuntime .main_thread );
2038
- #endif
2039
2032
PyThread_ident_t ident = PyThread_get_thread_ident_ex ();
2040
2033
if (ident == PYTHREAD_INVALID_THREAD_ID ) {
2041
2034
PyErr_SetString (ThreadError , "no current thread ident" );
You can’t perform that action at this time.
0 commit comments