Use Python3 new super syntax sugar (#26890)

This commit is contained in:
Franck Nijhof 2019-09-25 00:38:20 +02:00 committed by Paulus Schoutsen
parent 6fdff9ffab
commit 9c9c921922
26 changed files with 30 additions and 30 deletions

View file

@ -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."""