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‎

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

512512
defusesTime(self):
513513
fmt=self._fmt
514-
returnfmt.find('$asctime') >=0orfmt.find(self.asctime_format) >=0
514+
returnfmt.find('$asctime') >=0orfmt.find(self.asctime_search) >=0
515515

516516
defvalidate(self):
517517
pattern=Template.pattern

0 commit comments

Comments
(0)