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

(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:16:49 -08:00 committed by GitHub
parent a2b84bbf77
commit 5bbf8ed8fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -496,7 +496,7 @@ def __init__(self, *args, **kwargs):
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