From 5528eaaf9e182d3b01b4b7ab91089a5f773434ff Mon Sep 17 00:00:00 2001 From: Thijs Triemstra Date: Sun, 19 Nov 2023 22:30:32 +0100 Subject: [PATCH] Replace deprecated logger.warn with logger.warning the `logger.warn` alias will be removed in Python 3.13 --- tests/mocks/mock_gpio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mocks/mock_gpio.py b/tests/mocks/mock_gpio.py index c6529549f..d3e97be4d 100644 --- a/tests/mocks/mock_gpio.py +++ b/tests/mocks/mock_gpio.py @@ -114,7 +114,7 @@ def request(self, self.is_event = False if default_vals is not None: if version > (1, 2): - logging.warn("default_vals is deprecated in gpiod 1.3+") + logging.warning("default_vals is deprecated in gpiod 1.3+") self.value = default_vals[0] elif default_val is not None: if version < (1, 3):