Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f47fb0

Browse files
committed
Correct signatures for a couple of logging handlers
Reported by Oleg Gromyak on docs@
1 parent 085e806 commit 2f47fb0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/logging.handlers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ exclusive locks - and so there is no need for such a handler. Furthermore,
152152
for this value.
153153

154154

155-
.. class:: WatchedFileHandler(filename[,mode[, encoding[, delay]]])
155+
.. class:: WatchedFileHandler(filename, mode='a', encoding=None, delay=False)
156156

157157
Returns a new instance of the :class:`WatchedFileHandler` class. The specified
158158
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`
257257
module, supports rotation of disk log files.
258258

259259

260-
.. class:: RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=0)
260+
.. class:: RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=False)
261261

262262
Returns a new instance of the :class:`RotatingFileHandler` class. The specified
263263
file is opened and used as the stream for logging. If *mode* is not specified,

0 commit comments

Comments
 (0)