[issue35781] `logger.warn` method is used in "Logging HOWTO" documentation though `logger.warn` method is deprecated in Python 3.7

Karthikeyan Singaravelan report at bugs.python.org
Sat Jan 19 00:05:04 EST 2019


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

Thanks for the report. Would you like to propose a PR for this? 

Cases of using warn method in documentation examples : 

* https://github.com/python/cpython/blob/master/Doc/howto/logging.rst
* https://github.com/python/cpython/blob/master/Doc/howto/logging-cookbook.rst

Doc/howto/logging.rst
613:    logger.warn('warn message')
643:    logger.warn('warn message')

Doc/howto/logging-cookbook.rst
189:    logger.warn('warn message')
298:            logger.warn('warn message')

----------
nosy: +vinay.sajip, xtreak
versions: +Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35781>
_______________________________________


More information about the Python-bugs-list mailing list