[Python-checkins] [3.11] gh-99811: Use correct variable to search for time in format string (GH-99812) (GH-99851)
vsajip
webhook-mailer at python.org
Mon Nov 28 14:16:56 EST 2022
https://github.com/python/cpython/commit/5bbf8ed8fbca0d68144c7b317ea8550420ac2594
commit: 5bbf8ed8fbca0d68144c7b317ea8550420ac2594
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: vsajip <vinay_sajip at yahoo.co.uk>
date: 2022-11-28T19:16:49Z
summary:
[3.11] gh-99811: Use correct variable to search for time in format string (GH-99812) (GH-99851)
(cherry picked from commit 1d1bb95abdcafe92c771fb3dc4722351b032cc24)
Co-authored-by: cemysce <13400533+cemysce at users.noreply.github.com>
files:
M Lib/logging/__init__.py
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 458c5fb7d0dc..bcee2bab0b81 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -496,7 +496,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
More information about the Python-checkins
mailing list