According to https://docs.python.org/3/library/logging.html#logging.Logger.warning the warn() method is deprecated, and it is now giving deprecation warnings. The equivalent warning() method has been present since at least Python 3.5. This patch replaces warn() with warning().
According to https://docs.python.org/3/library/logging.html#logging.Logger.warning the
warn()
method is deprecated, and it is now giving deprecation warnings. The equivalentwarning()
method has been present since at least Python 3.5. This patch replaceswarn()
withwarning()
.