mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
[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:
parent
a2b84bbf77
commit
5bbf8ed8fb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue