From 84dedb191086d05fe91a74e244c0a02ff178ebd4 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 6 Jun 2024 07:51:57 +0200 Subject: [PATCH] fix: Remove deprecated alias of logger.warn python-neovim fails to build with Python 3.13.0b1. According to https://docs.python.org/3.13/whatsnew/3.13.html: logging: Remove undocumented and untested Logger.warn() and LoggerAdapter.warn() methods and logging.warn() function. Deprecated since Python 3.3, they were aliases to the logging.Logger.warning() method, logging.LoggerAdapter.warning() method and logging.warning() function. --- pynvim/plugin/script_host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynvim/plugin/script_host.py b/pynvim/plugin/script_host.py index f382215a..89efbadd 100644 --- a/pynvim/plugin/script_host.py +++ b/pynvim/plugin/script_host.py @@ -16,7 +16,7 @@ logger = logging.getLogger(__name__) -debug, info, warn = (logger.debug, logger.info, logger.warn,) +debug, info, warn = (logger.debug, logger.info, logger.warning,) @plugin