Remove logic for Python < 3.8
... because now this library supports only Python >= 3.8. Change-Id: I6146d7421f4eaf613419a6887b208549d85a61d1
This commit is contained in:
parent
b0b2422dbb
commit
e62d408071
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user