diff sat/core/log.py @ 3280:96b9b65b4368

core (log): logging with Twisted now uses the new twisted.logger
author Goffi <goffi@goffi.org>
date Mon, 25 May 2020 15:46:21 +0200
parents 559a625a236b
children be6d91572633
line wrap: on
line diff
--- a/sat/core/log.py	Tue May 19 18:34:06 2020 +0200
+++ b/sat/core/log.py	Mon May 25 15:46:21 2020 +0200
@@ -37,7 +37,7 @@
     pass
 
 
-class Logger(object):
+class Logger:
     """High level logging class"""
     fmt = None # format option as given by user (e.g. SAT_LOG_LOGGER)
     filter_name = None # filter to call
@@ -163,7 +163,7 @@
         return self.filter(log_record) == 1
 
 
-class ConfigureBase(object):
+class ConfigureBase:
     LOGGER_CLASS = Logger
     # True if color location is specified in fmt (with COLOR_START)
     _color_location = False