From 46179f681cd597515c43943e0768a48f726c422d Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Thu, 18 Apr 2019 20:10:03 +0100 Subject: [PATCH] Replace deprecated log.warn warning() has been the documented method since logging was introduced in Python 2.3. --- linkcheck/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkcheck/log.py b/linkcheck/log.py index 00783daa..2dc7d541 100644 --- a/linkcheck/log.py +++ b/linkcheck/log.py @@ -102,7 +102,7 @@ def warn (logname, msg, *args, **kwargs): """ log = logging.getLogger(logname) if log.isEnabledFor(logging.WARN): - _log(log.warn, msg, args, **kwargs) + _log(log.warning, msg, args, **kwargs) def error (logname, msg, *args, **kwargs):