Commit 2f47fb00 authored by Zachary Ware's avatar Zachary Ware

Correct signatures for a couple of logging handlers

Reported by Oleg Gromyak on docs@
parent 085e8067
...@@ -152,7 +152,7 @@ exclusive locks - and so there is no need for such a handler. Furthermore, ...@@ -152,7 +152,7 @@ exclusive locks - and so there is no need for such a handler. Furthermore,
for this value. for this value.
.. class:: WatchedFileHandler(filename[,mode[, encoding[, delay]]]) .. class:: WatchedFileHandler(filename, mode='a', encoding=None, delay=False)
Returns a new instance of the :class:`WatchedFileHandler` class. The specified Returns a new instance of the :class:`WatchedFileHandler` class. The specified
file is opened and used as the stream for logging. If *mode* is not specified, file is opened and used as the stream for logging. If *mode* is not specified,
...@@ -257,7 +257,7 @@ The :class:`RotatingFileHandler` class, located in the :mod:`logging.handlers` ...@@ -257,7 +257,7 @@ The :class:`RotatingFileHandler` class, located in the :mod:`logging.handlers`
module, supports rotation of disk log files. module, supports rotation of disk log files.
.. class:: RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=0) .. class:: RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=False)
Returns a new instance of the :class:`RotatingFileHandler` class. The specified Returns a new instance of the :class:`RotatingFileHandler` class. The specified
file is opened and used as the stream for logging. If *mode* is not specified, file is opened and used as the stream for logging. If *mode* is not specified,
......
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