summaryrefslogtreecommitdiff
path: root/dev-python/kombu/files/kombu-5.3.7-py313.patch
blob: 7a359db0e022fb01cb29b368e5919f9fdf900931 (plain)
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
From d26e891025f55ecbdc577fcbd4bc1f19c9e020d9 Mon Sep 17 00:00:00 2001
From: Roman Inflianskas <rominf@pm.me>
Date: Fri, 5 Jul 2024 21:44:58 +0300
Subject: [PATCH] Add support for Python 3.13

Fixes https://github.com/celery/kombu/issues/2051.
---
 .github/workflows/ci.yaml              | 16 ++++++++++++++--
 kombu/transport/redis.py               |  2 +-
 requirements/extras/confluentkafka.txt |  2 +-
 requirements/extras/zstd.txt           |  2 +-
 t/unit/transport/test_redis.py         | 15 ++++++++++-----
 tox.ini                                | 18 ++++++++++--------
 6 files changed, 37 insertions(+), 18 deletions(-)

diff --git a/kombu/transport/redis.py b/kombu/transport/redis.py
index 515d6f7d7..29909dbe5 100644
--- a/kombu/transport/redis.py
+++ b/kombu/transport/redis.py
@@ -89,7 +89,7 @@
 
 
 logger = get_logger('kombu.transport.redis')
-crit, warn = logger.critical, logger.warn
+crit, warn = logger.critical, logger.warning
 
 DEFAULT_PORT = 6379
 DEFAULT_DB = 0