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:
Jorhson Deng 2021-04-27 01:33:54 +00:00
parent 349d9dd9ee
commit 26d1c29938
1 changed files with 2 additions and 5 deletions

View File

@ -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)