Kaydet (Commit) cda73a5a authored tarafından yuji38kwmt's avatar yuji38kwmt Kaydeden (comit) Vinay Sajip

bpo-35781: Changed references to deprecated 'warn' method in logging…

bpo-35781: Changed references to deprecated 'warn' method in logging documentation in favour of 'warning' (GH-11654)
üst f0c74360
...@@ -186,7 +186,7 @@ previous simple module-based configuration example:: ...@@ -186,7 +186,7 @@ previous simple module-based configuration example::
# 'application' code # 'application' code
logger.debug('debug message') logger.debug('debug message')
logger.info('info message') logger.info('info message')
logger.warn('warn message') logger.warning('warn message')
logger.error('error message') logger.error('error message')
logger.critical('critical message') logger.critical('critical message')
...@@ -295,7 +295,7 @@ Here is an example of a module using the logging configuration server:: ...@@ -295,7 +295,7 @@ Here is an example of a module using the logging configuration server::
while True: while True:
logger.debug('debug message') logger.debug('debug message')
logger.info('info message') logger.info('info message')
logger.warn('warn message') logger.warning('warn message')
logger.error('error message') logger.error('error message')
logger.critical('critical message') logger.critical('critical message')
time.sleep(5) time.sleep(5)
......
...@@ -610,7 +610,7 @@ logger, a console handler, and a simple formatter using Python code:: ...@@ -610,7 +610,7 @@ logger, a console handler, and a simple formatter using Python code::
# 'application' code # 'application' code
logger.debug('debug message') logger.debug('debug message')
logger.info('info message') logger.info('info message')
logger.warn('warn message') logger.warning('warn message')
logger.error('error message') logger.error('error message')
logger.critical('critical message') logger.critical('critical message')
...@@ -640,7 +640,7 @@ the names of the objects:: ...@@ -640,7 +640,7 @@ the names of the objects::
# 'application' code # 'application' code
logger.debug('debug message') logger.debug('debug message')
logger.info('info message') logger.info('info message')
logger.warn('warn message') logger.warning('warn message')
logger.error('error message') logger.error('error message')
logger.critical('critical message') logger.critical('critical message')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment