Skip to content

Commit 1d1bb95

Browse files
authored
gh-99811: Use correct variable to search for time in format string (GH-99812)
Use correct variable to search for asctime
1 parent ca3e611 commit 1d1bb95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/logging/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def __init__(self, *args, **kwargs):
511511

512512
def usesTime(self):
513513
fmt = self._fmt
514-
return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_format) >= 0
514+
return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0
515515

516516
def validate(self):
517517
pattern = Template.pattern

0 commit comments

Comments
 (0)