mirror of
https://github.com/python/cpython.git
synced 2025-12-31 20:43:36 +00:00
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:
parent
ca3e611b1f
commit
1d1bb95abd
1 changed files with 1 additions and 1 deletions
|
|
@ -511,7 +511,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