Skip to content

Commit a2a8946

Browse files
cemyscemiss-islington
authored andcommitted
pythongh-99811: Use correct variable to search for time in format string (pythonGH-99812)
Use correct variable to search for asctime (cherry picked from commit 1d1bb95) Co-authored-by: cemysce <13400533+cemysce@users.noreply.github.com>
1 parent a2b84bb commit a2a8946

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/logging/__init__.py

Lines changed: 1 addition & 1 deletion
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)