pmb.*: various comment reformatting to assist with generating docs (MR 2266)

This commit is contained in:
Robert Eckelmann 2024-05-08 14:39:48 -07:00 committed by Newbyte
parent 415e7364f4
commit 044d3b5a6a
No known key found for this signature in database
GPG key ID: 8A700086A9FE41FD
43 changed files with 592 additions and 599 deletions

View file

@ -9,9 +9,7 @@ logfd = None
class log_handler(logging.StreamHandler):
"""
Write to stdout and to the already opened log file.
"""
"""Write to stdout and to the already opened log file."""
_args = None
def emit(self, record):
@ -72,9 +70,9 @@ class log_handler(logging.StreamHandler):
def add_verbose_log_level():
"""
Add a new log level "verbose", which is below "debug". Also monkeypatch
logging, so it can be used with logging.verbose().
"""Add a new log level "verbose", which is below "debug".
Also monkeypatch logging, so it can be used with logging.verbose().
This function is based on work by Voitek Zylinski and sleepycal:
https://stackoverflow.com/a/20602183
@ -91,10 +89,7 @@ def add_verbose_log_level():
def init(args):
"""
Set log format and add the log file descriptor to logfd, add the
verbose log level.
"""
"""Set log format and add the log file descriptor to logfd, add the verbose log level."""
global logfd
# Set log file descriptor (logfd)
if args.details_to_stdout: