mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
python: use python3 style super statements
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
3db3251342
commit
c8ded4621d
@@ -34,7 +34,7 @@ class ColoredFormatter(logging.Formatter):
|
||||
"""Add color to log according to level"""
|
||||
|
||||
def format(self, record):
|
||||
log = super(ColoredFormatter, self).format(record)
|
||||
log = super().format(record)
|
||||
color = LEVEL_COLORS.get(record.levelno, GREY)
|
||||
return color + log + C_NORMAL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user