Remove logic for Python < 3.8

... because now this library supports only Python >= 3.8.

Change-Id: I6146d7421f4eaf613419a6887b208549d85a61d1
This commit is contained in:
Takashi Kajinami 2022-07-17 00:33:19 +09:00
parent b0b2422dbb
commit e62d408071

View File

@ -74,8 +74,7 @@ def logme(level, msg, exc_info=False):
class LogRecorder(pylogging.Formatter): class LogRecorder(pylogging.Formatter):
def __init__(self, logs, *args, **kwargs): def __init__(self, logs, *args, **kwargs):
if sys.version_info >= (3, 8): kwargs['validate'] = False
kwargs['validate'] = False
super(LogRecorder, self).__init__(*args, **kwargs) super(LogRecorder, self).__init__(*args, **kwargs)
self.logs = logs self.logs = logs