Updated indentation and spaces in logging.py for #9146

This commit is contained in:
Vijay Arora 2021-10-01 21:36:35 +05:30 committed by GitHub
parent 750ce30392
commit 5fefd7de96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -447,10 +447,12 @@ class LogCaptureFixture:
self.handler.reset()
def set_level(self, level: Union[int, str], logger: Optional[str] = None) -> None:
"""Sets the threshold for this logger to level. Logging messages which are less
severe than level will be ignored; logging messages which have severity level or
higher will be emitted by whichever handler or handlers service this logger, unless
a handlers level has been set to a higher severity level than level.
"""Sets the threshold for this logger to level.
Logging messages which are less severe than level will be ignored; logging messages
which have severity level or higher will be emitted by whichever handler or handlers
service this logger, unless a handlers level has been set to a higher severity level
than `level`.
.. versionchanged:: 3.4
The levels of the loggers changed by this function will be