Skip to content

Commit 5bbf8ed

Browse files
[3.11] gh-99811: Use correct variable to search for time in format string (GH-99812) (GH-99851)
(cherry picked from commit 1d1bb95) Co-authored-by: cemysce <[email protected]>
1 parent a2b84bb commit 5bbf8ed

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
@@ -496,7 +496,7 @@ def __init__(self, *args, **kwargs):
496496

497497
def usesTime(self):
498498
fmt = self._fmt
499-
return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_format) >= 0
499+
return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0
500500

501501
def validate(self):
502502
pattern = Template.pattern

0 commit comments

Comments
 (0)