gh-99811: Use correct variable to search for time in format string (GH-99812)

Use correct variable to search for asctime
This commit is contained in:
cemysce 2022-11-28 13:25:03 -05:00 committed by GitHub
parent ca3e611b1f
commit 1d1bb95abd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ class StringTemplateStyle(PercentStyle):
def usesTime(self):
fmt = self._fmt
return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_format) >= 0
return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0
def validate(self):
pattern = Template.pattern