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."""
|