aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-02-26 20:47:59 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-02-26 21:10:33 +0300
commit092fb1c81ed1563b6d15286b1f918278d0e6d391 (patch)
tree2e2dd0b3a72b7026e731878b85ee3d134c01480f
parent5f7b367ee75acc9f07a7dc091f26f92916e5a9eb (diff)
downloadydb-092fb1c81ed1563b6d15286b1f918278d0e6d391.tar.gz
Remove patch as we have gevent 24.2.1 now
47264a88e6c857e589b5b21815c061575413132a
-rw-r--r--contrib/tools/python3/Lib/threading.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/contrib/tools/python3/Lib/threading.py b/contrib/tools/python3/Lib/threading.py
index 3936074d72..98cb43c697 100644
--- a/contrib/tools/python3/Lib/threading.py
+++ b/contrib/tools/python3/Lib/threading.py
@@ -1684,12 +1684,7 @@ def _after_fork():
# its new value since it can have changed.
thread._reset_internal_locks(True)
ident = get_ident()
- if (
- isinstance(thread, _DummyThread)
- # Ensure _DummyThread is not monkey-patched to avoid
- # <https://github.com/gevent/gevent/issues/2020>
- and _DummyThread.__bases__[0] == Thread
- ):
+ if isinstance(thread, _DummyThread):
thread.__class__ = _MainThread
thread._name = 'MainThread'
thread._daemonic = False