Use Python3 new super syntax sugar (#26890)
This commit is contained in:
parent
6fdff9ffab
commit
9c9c921922
26 changed files with 30 additions and 30 deletions
|
@ -29,7 +29,7 @@ class KeywordStyleAdapter(logging.LoggerAdapter):
|
|||
|
||||
def __init__(self, logger, extra=None):
|
||||
"""Initialize a new StyleAdapter for the provided logger."""
|
||||
super(KeywordStyleAdapter, self).__init__(logger, extra or {})
|
||||
super().__init__(logger, extra or {})
|
||||
|
||||
def log(self, level, msg, *args, **kwargs):
|
||||
"""Log the message provided at the appropriate level."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue