Skip to content

Commit a855fa3

Browse files
authored
fix: deprecated alias of logger.warn #569
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.
1 parent cc45f5b commit a855fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynvim/plugin/script_host.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
logger = logging.getLogger(__name__)
19-
debug, info, warn = (logger.debug, logger.info, logger.warn,)
19+
debug, info, warn = (logger.debug, logger.info, logger.warning,)
2020

2121

2222
@plugin

0 commit comments

Comments
 (0)