forked from pool/python-eventlet
* Fix compatibility issues identified with Python 3.14 on Linux (#1058) * Make database removal safer with IF EXISTS (#1056) * Prepare jobs and CI/CD for python 3.14 (#1055) - from version 0.40.1 * [fix] "Fix" fork() so it "works" on Python 3.13, and "works" better on older Python versions (#1047) * Behavior change: threads created by eventlet.green.threading.Thread and threading.Thead will be visible across both modules if monkey patching was used. Previously each module would only list threads created in that module. * Bug fix: after fork(), greenlet threads are correctly listed in threading.enumerate() if monkey patching was used. You should not use fork()-without-execve(). * [fix] Fix patching of removed URLopener class in Python 3.14 (#1053) * [fix] ReferenceError except while count rlock (#1042) * [fix] Replace deprecated datetime.utcfromtimestamp (#1050) * [fix][env] Remove duplicate steps (#1049) * [fix] Replace deprecated datetime.datetime.utcnow (#1046) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=137
24 lines
913 B
Diff
24 lines
913 B
Diff
From d19ad6cc086684ee74db250f5fd35227c98e678a Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
|
Date: Thu, 6 Jun 2024 10:29:29 +0200
|
|
Subject: [PATCH] Add new thread attributes from Python 3.13
|
|
|
|
Does not fix https://github.com/eventlet/eventlet/issues/964 yet
|
|
---
|
|
eventlet/green/thread.py | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
--- a/eventlet/green/thread.py
|
|
+++ b/eventlet/green/thread.py
|
|
@@ -118,3 +118,10 @@ from eventlet.corolocal import local as
|
|
|
|
if hasattr(__thread, 'daemon_threads_allowed'):
|
|
daemon_threads_allowed = __thread.daemon_threads_allowed
|
|
+
|
|
+if hasattr(__thread, 'start_joinable_thread'):
|
|
+ start_joinable_thread = __thread.start_joinable_thread
|
|
+ _shutdown = __thread._shutdown
|
|
+ _make_thread_handle = __thread._make_thread_handle
|
|
+ _ThreadHandle = __thread._ThreadHandle
|
|
+ _get_main_thread_ident = __thread._get_main_thread_ident
|