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

(cherry picked from commit 1d1bb95abd)
Co-authored-by: cemysce <13400533+cemysce@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-11-28 11:17:31 -08:00 committed by GitHub
parent a851797863
commit 1b43fa6890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -487,7 +487,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