diff options
author | yuji38kwmt <yuji38kwmt@yahoo.co.jp> | 2019-01-23 07:27:13 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2019-01-23 07:27:13 (GMT) |
commit | cda73a5af2ff064ca82140342b3158851d43868f (patch) | |
tree | a0cf2e10e1bc11adf3b60d97d956b58e16fff863 /Doc/howto/logging.rst | |
parent | f0c743604fc841d35a48822b936ef2e5919e43c1 (diff) | |
download | cpython-cda73a5af2ff064ca82140342b3158851d43868f.zip cpython-cda73a5af2ff064ca82140342b3158851d43868f.tar.gz cpython-cda73a5af2ff064ca82140342b3158851d43868f.tar.bz2 |
bpo-35781: Changed references to deprecated 'warn' method in logging documentation in favour of 'warning' (GH-11654)
Diffstat (limited to 'Doc/howto/logging.rst')
-rw-r--r-- | Doc/howto/logging.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/howto/logging.rst b/Doc/howto/logging.rst index c90df43..7a68ca8 100644 --- a/Doc/howto/logging.rst +++ b/Doc/howto/logging.rst @@ -610,7 +610,7 @@ logger, a console handler, and a simple formatter using Python code:: # 'application' code logger.debug('debug message') logger.info('info message') - logger.warn('warn message') + logger.warning('warn message') logger.error('error message') logger.critical('critical message') @@ -640,7 +640,7 @@ the names of the objects:: # 'application' code logger.debug('debug message') logger.info('info message') - logger.warn('warn message') + logger.warning('warn message') logger.error('error message') logger.critical('critical message') |