File: py3.14-fix-close-asyncio-future.patch

package info (click to toggle)
python-jaeger-client 4.8.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 956 kB
  • sloc: python: 5,579; makefile: 93; sh: 26; awk: 16
file content (32 lines) | stat: -rw-r--r-- 915 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Python 3.14: fix close asyncio future
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1123259
Forwarded: no
Last-Update: 2025-12-22

Index: python-jaeger-client/jaeger_client/reporter.py
===================================================================
--- python-jaeger-client.orig/jaeger_client/reporter.py
+++ python-jaeger-client/jaeger_client/reporter.py
@@ -13,6 +13,7 @@
 # limitations under the License.
 
 
+import concurrent.futures
 import logging
 import threading
 from typing import List, Dict, Optional, Any
@@ -44,10 +45,9 @@ class BaseReporter(object):
         pass
 
     def close(self) -> Future:
-        fut: Future = Future()
-        fut.set_result(True)
-        return fut
-
+        future = concurrent.futures.Future()
+        future.set_result(None)
+        return future
 
 class NullReporter(BaseReporter):
     """Ignores all spans."""