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