[Python-checkins] cpython (2.7): Issue #21245: updated documentation on exception() method and function.

vinay.sajip python-checkins at python.org
Wed Apr 16 00:14:10 CEST 2014


http://hg.python.org/cpython/rev/dcb5ca1f1b44
changeset:   90340:dcb5ca1f1b44
branch:      2.7
parent:      90337:a1ef419c0cfb
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Tue Apr 15 23:11:15 2014 +0100
summary:
  Issue #21245: updated documentation on exception() method and function.

files:
  Doc/library/logging.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -222,7 +222,7 @@
    interpreted as for :meth:`debug`.
 
 
-.. method:: Logger.exception(msg, *args)
+.. method:: Logger.exception(msg, *args, **kwargs)
 
    Logs a message with level :const:`ERROR` on this logger. The arguments are
    interpreted as for :meth:`debug`. Exception info is added to the logging
@@ -840,7 +840,7 @@
    are interpreted as for :func:`debug`.
 
 
-.. function:: exception(msg[, *args])
+.. function:: exception(msg[, *args[, **kwargs]])
 
    Logs a message with level :const:`ERROR` on the root logger. The arguments are
    interpreted as for :func:`debug`. Exception info is added to the logging

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list