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
