Skip to content

Commit

Permalink
fix: deprecated alias of logger.warn #569
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cryptomilk committed Jun 10, 2024
1 parent cc45f5b commit a855fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynvim/plugin/script_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a855fa3

Please sign in to comment.