Remove references to 'sys.version_info'
We support Python 3.6 as a minimum now, making these checks no-ops. Change-Id: Ifd84fe4d7282e93998dc37cab4adda6d99d4adc1
This commit is contained in:
parent
349d9dd9ee
commit
26d1c29938
|
@ -493,11 +493,8 @@ class ContextFormatter(logging.Formatter):
|
|||
|
||||
self._compute_iso_time(record)
|
||||
|
||||
if sys.version_info < (3, 2):
|
||||
self._fmt = fmt
|
||||
else:
|
||||
self._style = logging.PercentStyle(fmt)
|
||||
self._fmt = self._style._fmt
|
||||
self._style = logging.PercentStyle(fmt)
|
||||
self._fmt = self._style._fmt
|
||||
|
||||
try:
|
||||
return logging.Formatter.format(self, record)
|
||||
|
|
Loading…
Reference in New Issue