mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[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:
parent
a851797863
commit
1b43fa6890
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue