Skip to content

Commit c7cd926

Browse files
committed
use logger.warning instead of the deprecated logger.warn
1 parent dd419f3 commit c7cd926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyff/logs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def __init__(self, name=None):
1919
name = __name__
2020
self._log = logging.getLogger(name)
2121
self._loggers = {
22-
logging.WARN: self._log.warn,
23-
logging.WARNING: self._log.warn,
22+
logging.WARN: self._log.warning,
23+
logging.WARNING: self._log.warning,
2424
logging.CRITICAL: self._log.critical,
2525
logging.INFO: self._log.info,
2626
logging.DEBUG: self._log.debug,

0 commit comments

Comments
 (0)