summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch b/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch
new file mode 100644
index 0000000000..fd0fc91d25
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch
@@ -0,0 +1,32 @@
1From d19ad6cc086684ee74db250f5fd35227c98e678a Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
3Date: Thu, 6 Jun 2024 10:29:29 +0200
4Subject: [PATCH] Add new thread attributes from Python 3.13
5
6Does not fix https://github.com/eventlet/eventlet/issues/964 yet
7Upstream-Status: Backport [https://github.com/eventlet/eventlet/pull/965]
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 eventlet/green/thread.py | 7 +++++++
11 1 file changed, 7 insertions(+)
12
13diff --git a/eventlet/green/thread.py b/eventlet/green/thread.py
14index 224cd1c..c70c9e8 100644
15--- a/eventlet/green/thread.py
16+++ b/eventlet/green/thread.py
17@@ -174,5 +174,12 @@ from eventlet.corolocal import local as _local
18 if hasattr(__thread, 'daemon_threads_allowed'):
19 daemon_threads_allowed = __thread.daemon_threads_allowed
20
21+if hasattr(__thread, 'start_joinable_thread'):
22+ start_joinable_thread = __thread.start_joinable_thread
23+ _shutdown = __thread._shutdown
24+ _make_thread_handle = __thread._make_thread_handle
25+ _ThreadHandle = __thread._ThreadHandle
26+ _get_main_thread_ident = __thread._get_main_thread_ident
27+
28 if hasattr(__thread, '_shutdown'):
29 _shutdown = __thread._shutdown
30--
312.43.0
32