]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct signatures for a couple of logging handlers
authorZachary Ware <zachary.ware@gmail.com>
Tue, 9 Aug 2016 21:20:41 +0000 (16:20 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Tue, 9 Aug 2016 21:20:41 +0000 (16:20 -0500)
Reported by Oleg Gromyak on docs@

Doc/library/logging.handlers.rst

index 855adabf86965dc3e5b1333bb3b9fb6423240174..916b702606b6bd349088c74903e63d0eb5020ffc 100644 (file)
@@ -152,7 +152,7 @@ exclusive locks - and so there is no need for such a handler. Furthermore,
 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
    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`
 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
    file is opened and used as the stream for logging. If *mode* is not specified,